def enterHall(dynamicId, characterId): '''进入排队大厅 @param dynamicId: int 客户端的动态id @param characterId: int 角色的id ''' player = PlayersManager().getPlayerByID(characterId) if not player: return {'result': False, 'message': Lg().g(18)} areahall = Hall().getAreaHallById(1) areahall.getQueueRoomList() result = areahall.addPlayer(characterId) if result: return {'result': True, 'message': Lg().g(101)}
def enterHall(dynamicId,characterId): '''进入排队大厅 @param dynamicId: int 客户端的动态id @param characterId: int 角色的id ''' player = PlayersManager().getPlayerByID(characterId) if not player: return {'result':False,'message':Lg().g(18)} areahall = Hall().getAreaHallById(1) areahall.getQueueRoomList() result = areahall.addPlayer(characterId) if result: return {'result':True,'message':Lg().g(101)}
def getHallInfo(dynamicId, characterId, curPage): '''获取大厅信息''' player = PlayersManager().getPlayerByID(characterId) if not player: return {'result': False, 'message': Lg().g(18)} areahall = Hall().getAreaHallById(1) areahall.addPlayer(characterId) data = areahall.getQueueRoomList(curPage) player.baseInfo.setStatus(2) return {'result': True, 'message': Lg().g(101), 'data': data}
def getHallInfo(dynamicId,characterId,curPage): '''获取大厅信息''' player = PlayersManager().getPlayerByID(characterId) if not player: return {'result':False,'message':Lg().g(18)} areahall = Hall().getAreaHallById(1) areahall.addPlayer(characterId) data = areahall.getQueueRoomList(curPage) player.baseInfo.setStatus(2) return {'result':True,'message':Lg().g(101),'data':data}