Removed the conf/ modules, putting them into conf/examples instead, in line with other API changes. The gamesrc/ folder is now completely empty and all new modules have to be added explicitly.
This commit is contained in:
parent
bdb5ab0123
commit
e042366f31
11 changed files with 72 additions and 30 deletions
24
game/gamesrc/conf/examples/at_initial_setup.py
Normal file
24
game/gamesrc/conf/examples/at_initial_setup.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
"""
|
||||
At_initial_setup module template
|
||||
|
||||
Copy this module up one level to /gamesrc/conf, name it what you like
|
||||
and then use it as a template to modify.
|
||||
|
||||
Then edit settings.AT_INITIAL_SETUP_HOOK_MODULE to point to your new
|
||||
module.
|
||||
|
||||
Custom at_initial_setup method. This allows you to hook special
|
||||
modifications to the initial server startup process. Note that this
|
||||
will only be run once - when the server starts up for the very first
|
||||
time! It is called last in the startup process and can thus be used to
|
||||
overload things that happened before it.
|
||||
|
||||
The module must contain a global function at_initial_setup(). This
|
||||
will be called without arguments. Note that tracebacks in this module
|
||||
will be QUIETLY ignored, so make sure to check it well to make sure it
|
||||
does what you expect it to.
|
||||
|
||||
"""
|
||||
|
||||
def at_initial_setup():
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue