21 lines
652 B
Python
21 lines
652 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 game.gamesrc.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())
|