Some further work on the OOBhandler mechanism.
This commit is contained in:
parent
b0b0fa7983
commit
58c010ef46
4 changed files with 57 additions and 37 deletions
|
|
@ -7,10 +7,15 @@
|
|||
is selected by settings.OOB_FUNC_MODULE.
|
||||
|
||||
All functions defined global in this module will be available
|
||||
for the oob system to call. They will be called with a session/character
|
||||
for the oob system to call. They will be called in the following
|
||||
way:
|
||||
|
||||
a session/character
|
||||
as first argument (depending on if the session is logged in or not),
|
||||
following by any number of extra arguments. The return value will
|
||||
be packed and returned to the oob protocol and can be on any form.
|
||||
|
||||
|
||||
"""
|
||||
|
||||
def testoob(character, *args, **kwargs):
|
||||
|
|
@ -19,8 +24,6 @@ def testoob(character, *args, **kwargs):
|
|||
return "testoob did stuff to the input string '%s'!" % val
|
||||
|
||||
|
||||
|
||||
|
||||
# MSDP_MAP is a standard suggestions for making it easy to create generic guis.
|
||||
# this maps MSDP command names to Evennia commands found in OOB_FUNC_MODULE. It
|
||||
# is up to these commands to return data on proper form.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue