Changed inputhandler/oochandler to monitorhandler and made inputhandler_funcs into just inputfuncs.py
This commit is contained in:
parent
67b84c2431
commit
4ab049709d
6 changed files with 33 additions and 151 deletions
|
|
@ -1,32 +1,33 @@
|
|||
"""
|
||||
Inputhandler functions
|
||||
Input functions
|
||||
|
||||
Inputcommands are always called from the client (they handle server
|
||||
Input functions are always called from the client (they handle server
|
||||
input, hence the name).
|
||||
|
||||
This module is loaded by being included in
|
||||
`settings.INPUT_HANDLER_MODULES`.
|
||||
This module is loaded by being included in the
|
||||
`settings.INPUT_FUNC_MODULES` tuple.
|
||||
|
||||
All *global functions* included in this module are
|
||||
considered input-handler functions and can be called
|
||||
by the client to handle input.
|
||||
All *global functions* included in this module are considered
|
||||
input-handler functions and can be called by the client to handle
|
||||
input.
|
||||
|
||||
An inputhandler function must have the following call signature:
|
||||
An input function must have the following call signature:
|
||||
|
||||
cmdname(session, *args, **kwargs)
|
||||
|
||||
Where session will be the active session and *args, **kwargs are extra
|
||||
incoming arguments and keyword properties.
|
||||
|
||||
A special command is the "default" command, which is called when
|
||||
no other cmdname matches:
|
||||
A special command is the "default" command, which is will be called
|
||||
when no other cmdname matches. It also receives the non-found cmdname
|
||||
as argument.
|
||||
|
||||
default(session, cmdname, *args, **kwargs)
|
||||
|
||||
"""
|
||||
|
||||
# import the contents of the default inputhandler_func module
|
||||
#from evennia.server.inputhandler_funcs import *
|
||||
#from evennia.server.inputfuncs import *
|
||||
|
||||
|
||||
# def oob_echo(session, *args, **kwargs):
|
||||
Loading…
Add table
Add a link
Reference in a new issue