예제 #1
0
파일: mode.py 프로젝트: taishan90/mud
 def enterMode(clientId, remaining):
     pushCmdHandler(clientId, self.modeMap)
     sendToClient(
         clientId,
         "\r\n{!{FG[{FYEntering %s mode{FG] {@({!{FC!{@ to exit)\r\n" %
         self.modeName)
     if modeAddDefaultCmds:
         sendToClient(clientId, self.modeMap.commands())
     sendToClient(clientId, "\r\n")
예제 #2
0
파일: mode.py 프로젝트: ryanberckmans/mud
 def enterMode( clientId, remaining ):
     pushCmdHandler( clientId, self.modeMap )
     sendToClient( clientId, "\r\n{!{FG[{FYEntering %s mode{FG] {@({!{FC!{@ to exit)\r\n" % self.modeName)
     if modeAddDefaultCmds:
         sendToClient( clientId, self.modeMap.commands() )
     sendToClient( clientId, "\r\n" )
예제 #3
0
def addRootMap( clientId ):
    pushCmdHandler( clientId, rootCmdMap )