mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 22:47:16 +02:00
The unit testing was for commands was split out from src/objects/tests.py into the new src/commands/default/test.py in order to keep the testing modules thematically grouped with the things they are testing.
21 lines
643 B
Python
21 lines
643 B
Python
"""
|
|
This module describes the unlogged state of the default game.
|
|
The setting STATE_UNLOGGED should be set to the python path
|
|
of the state instance in this module.
|
|
"""
|
|
from src.commands.cmdset import CmdSet
|
|
from src.commands.default import unloggedin
|
|
|
|
class UnloggedinCmdSet(CmdSet):
|
|
"""
|
|
Sets up the unlogged cmdset.
|
|
"""
|
|
key = "Unloggedin"
|
|
|
|
def at_cmdset_creation(self):
|
|
"Populate the cmdset"
|
|
self.add(unloggedin.CmdConnect())
|
|
self.add(unloggedin.CmdCreate())
|
|
self.add(unloggedin.CmdQuit())
|
|
self.add(unloggedin.CmdUnconnectedLook())
|
|
self.add(unloggedin.CmdUnconnectedHelp())
|