コード例 #1
0
 def at_cmdset_creation(self):
     """populate the cmdset."""
     self.add(CmdTutorial())
     self.add(CmdLookDark())
     self.add(CmdDarkHelp())
     self.add(CmdDarkNoMatch())
     self.add(default_cmds.CmdSay())
     self.add(default_cmds.CmdQuit())
     self.add(default_cmds.CmdHome())
コード例 #2
0
ファイル: menu.py プロジェクト: nullwaves/evennia
def node_quit(caller, raw_string, **kwargs):
    quiet = kwargs.get("quiet")
    text = ""
    if not quiet:
        text = "Goodbye for now!\n"
        # we check an Attribute on the caller to see if we should
        # leave the game entirely when leaving
        if caller.db.evscaperoom_standalone:
            from evennia.commands import cmdhandler
            from evennia import default_cmds
            cmdhandler.cmdhandler(caller.ndb._menutree._session,
                                  "",
                                  cmdobj=default_cmds.CmdQuit(),
                                  cmdobj_key="@quit")

    return text, None  # empty options exit the menu