Adjust docstring to resolve #1300
Also realigns code indent to multiple of 4 after `# ` is removed to uncomment
This commit is contained in:
parent
7ddcae9d32
commit
f8b279d7bb
1 changed files with 123 additions and 122 deletions
|
|
@ -21,17 +21,17 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
Each Command implements the following methods, called
|
Each Command implements the following methods, called
|
||||||
in this order (only func() is actually required):
|
in this order (only func() is actually required):
|
||||||
- at_pre_command(): If this returns True, execution is aborted.
|
- at_pre_cmd(): If this returns True, execution is aborted.
|
||||||
- parse(): Should perform any extra parsing needed on self.args
|
- parse(): Should perform any extra parsing needed on self.args
|
||||||
and store the result on self.
|
and store the result on self.
|
||||||
- func(): Performs the actual work.
|
- func(): Performs the actual work.
|
||||||
- at_post_command(): Extra actions, often things done after
|
- at_post_cmd(): Extra actions, often things done after
|
||||||
every command, like prompts.
|
every command, like prompts.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
#------------------------------------------------------------
|
# -------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# The default commands inherit from
|
# The default commands inherit from
|
||||||
#
|
#
|
||||||
|
|
@ -46,9 +46,11 @@ class Command(BaseCommand):
|
||||||
# the functionality implemented in the parse() method, so be
|
# the functionality implemented in the parse() method, so be
|
||||||
# careful with what you change.
|
# careful with what you change.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------
|
# -------------------------------------------------------------
|
||||||
|
|
||||||
# from evennia.utils import utils
|
# from evennia.utils import utils
|
||||||
|
#
|
||||||
|
#
|
||||||
# class MuxCommand(Command):
|
# class MuxCommand(Command):
|
||||||
# """
|
# """
|
||||||
# This sets up the basis for a MUX command. The idea
|
# This sets up the basis for a MUX command. The idea
|
||||||
|
|
@ -181,4 +183,3 @@ class Command(BaseCommand):
|
||||||
# self.character = self.caller.get_puppet(self.session)
|
# self.character = self.caller.get_puppet(self.session)
|
||||||
# else:
|
# else:
|
||||||
# self.character = None
|
# self.character = None
|
||||||
#
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue