Пример #1
0
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)}
Пример #2
0
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)}
Пример #3
0
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}
Пример #4
0
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}