Created basic GLOBAL_HANDLER for the Global Script API.

This commit is contained in:
Andrew Bastien 2019-04-09 23:42:46 -04:00
parent cd5e38fe14
commit 857c6d53f2
3 changed files with 67 additions and 1 deletions

View file

@ -538,6 +538,25 @@ INLINEFUNC_MODULES = ["evennia.utils.inlinefuncs",
PROTOTYPEFUNC_MODULES = ["evennia.utils.prototypefuncs",
"server.conf.prototypefuncs"]
######################################################################
# Global Scripts
######################################################################
# While any script that is not attached to any object is considered
# Global, any listed here will be started by Evennia during boot
# and attached to its API for an easy-lookup. This ensures the Script
# is always accessible, and re-created if it is somehow deleted. Use
# this for Scripts that absolutely MUST be running for your game as a
# simple way to get them launched.
# One limitation with this system is that each Script must be have a
# unique Typeclass. The 'key' is a way to quickly index them but is
# not necessarily the Script Typeclasss's key.
GLOBAL_SCRIPTS = {
# 'key': 'typeclass.path.here',
}
######################################################################
# Default Account setup and access
######################################################################