mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 22:47:16 +02:00
Revamp how commands are loaded. This will now allow for easy addition of custom commands and over-riding existing Evennia-supplied commands.
This commit is contained in:
parent
848c7da075
commit
4ca5a4a7bf
12 changed files with 165 additions and 107 deletions
|
|
@ -189,6 +189,46 @@ INSTALLED_APPS = (
|
|||
'game.web.apps.website',
|
||||
)
|
||||
|
||||
"""
|
||||
A tuple of strings representing all of the Evennia (IE: non-custom) commnad
|
||||
modules that are used at the login screen in the UNLOGGED command table. Do
|
||||
not modify this directly, add your custom command modules to
|
||||
CUSTOM_UNLOGGED_COMMAND_MODULES.
|
||||
"""
|
||||
UNLOGGED_COMMAND_MODULES = (
|
||||
'src.commands.unloggedin',
|
||||
)
|
||||
|
||||
"""
|
||||
Add your custom command modules under game/gamesrc/commands and to this list.
|
||||
These will be loaded after the Evennia codebase modules, meaning that any
|
||||
duplicate command names will be overridden by your version.
|
||||
"""
|
||||
CUSTOM_UNLOGGED_COMMAND_MODULES = ()
|
||||
|
||||
"""
|
||||
A tuple of strings representing all of the Evennia (IE: non-custom)
|
||||
command modules. Do not modify this directly, add your custom command
|
||||
modules to CUSTOM_COMMAND_MODULES.
|
||||
"""
|
||||
COMMAND_MODULES = (
|
||||
'src.commands.comsys',
|
||||
'src.commands.general',
|
||||
'src.commands.info',
|
||||
'src.commands.objmanip',
|
||||
'src.commands.paging',
|
||||
'src.commands.parents',
|
||||
'src.commands.privileged',
|
||||
'src.commands.search',
|
||||
)
|
||||
|
||||
"""
|
||||
Add your custom command modules under game/gamesrc/commands and to this list.
|
||||
These will be loaded after the Evennia codebase modules, meaning that any
|
||||
duplicate command names will be overridden by your version.
|
||||
"""
|
||||
CUSTOM_COMMAND_MODULES = ()
|
||||
|
||||
# If django_extensions is present, import it and install it. Otherwise fail
|
||||
# silently.
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue