def initData(self): """初始化角色信息 """ allmcharacter = dbCharacter.getALlCharacterBaseInfo() for cinfo in allmcharacter: pid = cinfo['id'] mcha = Mcharacter(pid, 'character%d' % pid, mclient) mcha.initData(cinfo) mcha.insert()
def initData(self): """初始化角色信息 """ allmcharacter = dbCharacter.getALlCharacterBaseInfo() for cinfo in allmcharacter: pid = cinfo['id'] mcha = Mcharacter(pid, 'character%d' % pid, mclient) mcha.initData(cinfo) mcha.insert()
def getMCharacterById(self, pid): ''' ''' mcha = Mcharacter(pid, 'character%d' % pid, mclient) return mcha
def GetCharacterInfoById(self, pid): ''' ''' mcha = Mcharacter(pid, 'character%d' % pid, mclient) return mcha.mcharacterinfo