Merge branch 'loaded_modules_api' of https://github.com/volundmush/evennia into volundmush-loaded_modules_api
This commit is contained in:
commit
bc0de360b5
1 changed files with 25 additions and 0 deletions
|
|
@ -114,6 +114,16 @@ CHANNEL_HANDLER = None
|
||||||
GLOBAL_SCRIPTS = None
|
GLOBAL_SCRIPTS = None
|
||||||
OPTION_CLASSES = None
|
OPTION_CLASSES = None
|
||||||
|
|
||||||
|
# typeclasses
|
||||||
|
BASE_ACCOUNT_TYPECLASS = None
|
||||||
|
BASE_OBJECT_TYPECLASS = None
|
||||||
|
BASE_CHARACTER_TYPECLASS = None
|
||||||
|
BASE_ROOM_TYPECLASS = None
|
||||||
|
BASE_EXIT_TYPECLASS = None
|
||||||
|
BASE_CHANNEL_TYPECLASS = None
|
||||||
|
BASE_SCRIPT_TYPECLASS = None
|
||||||
|
BASE_GUEST_TYPECLASS = None
|
||||||
|
|
||||||
|
|
||||||
def _create_version():
|
def _create_version():
|
||||||
"""
|
"""
|
||||||
|
|
@ -165,6 +175,10 @@ def _init():
|
||||||
global EvMenu, EvTable, EvForm, EvMore, EvEditor
|
global EvMenu, EvTable, EvForm, EvMore, EvEditor
|
||||||
global ANSIString
|
global ANSIString
|
||||||
|
|
||||||
|
global BASE_ACCOUNT_TYPECLASS, BASE_OBJECT_TYPECLASS, BASE_CHARACTER_TYPECLASS
|
||||||
|
global BASE_ROOM_TYPECLASS, BASE_EXIT_TYPECLASS, BASE_CHANNEL_TYPECLASS
|
||||||
|
global BASE_SCRIPT_TYPECLASS, BASE_GUEST_TYPECLASS
|
||||||
|
|
||||||
from .accounts.accounts import DefaultAccount
|
from .accounts.accounts import DefaultAccount
|
||||||
from .accounts.accounts import DefaultGuest
|
from .accounts.accounts import DefaultGuest
|
||||||
from .objects.objects import DefaultObject
|
from .objects.objects import DefaultObject
|
||||||
|
|
@ -227,6 +241,17 @@ def _init():
|
||||||
from .utils.containers import GLOBAL_SCRIPTS
|
from .utils.containers import GLOBAL_SCRIPTS
|
||||||
from .utils.containers import OPTION_CLASSES
|
from .utils.containers import OPTION_CLASSES
|
||||||
|
|
||||||
|
# typeclases
|
||||||
|
from .utils.utils import class_from_module
|
||||||
|
BASE_ACCOUNT_TYPECLASS = class_from_module(settings.BASE_ACCOUNT_TYPECLASS)
|
||||||
|
BASE_OBJECT_TYPECLASS = class_from_module(settings.BASE_OBJECT_TYPECLASS)
|
||||||
|
BASE_CHARACTER_TYPECLASS = class_from_module(settings.BASE_CHARACTER_TYPECLASS)
|
||||||
|
BASE_ROOM_TYPECLASS = class_from_module(settings.BASE_ROOM_TYPECLASS)
|
||||||
|
BASE_EXIT_TYPECLASS = class_from_module(settings.BASE_EXIT_TYPECLASS)
|
||||||
|
BASE_CHANNEL_TYPECLASS = class_from_module(settings.BASE_CHANNEL_TYPECLASS)
|
||||||
|
BASE_SCRIPT_TYPECLASS = class_from_module(settings.BASE_SCRIPT_TYPECLASS)
|
||||||
|
BASE_GUEST_TYPECLASS = class_from_module(settings.BASE_GUEST_TYPECLASS)
|
||||||
|
|
||||||
# initialize the doc string
|
# initialize the doc string
|
||||||
global __doc__
|
global __doc__
|
||||||
__doc__ = ansi.parse_ansi(DOCSTRING)
|
__doc__ = ansi.parse_ansi(DOCSTRING)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue