Example #1
0
def lobby(game_type, lobby_id,):
    lobby_state_response = lobbyservice.get_lobby(GetLobbyStateRequest(lobbyId=lobby_id))
    if (isinstance(lobby_state_response, GetLobbyStateResponse)):
        pass
    return render_template('create_game.html',  lobby_members=lobby_state_response.lobby.lobbymembers, 
                                                friends_list=get_friends_list(),
                                                game_type=game_type,
                                                lobby_id=lobby_id)
Example #2
0
def lobby_state(game_type, lobby_id):
    print "lobby state"  
    lobby_state_response = lobbyservice.get_lobby(GetLobbyStateRequest(lobbyId=lobby_id))
    if (isinstance(lobby_state_response, GetLobbyStateResponse)):
        pass
        #print "lobby state response", lobby_state_response
        # print "owner", lobby_state_response.lobby.owner
        # for member in lobby_state_response.lobby.lobbymembers:
        #     print "member", member.user.email


    return render_template('create_game.html',  owner=lobby_state_response.lobby.owner, 
                                                lobby_members=lobby_state_response.lobby.lobbymembers, 
                                                friends_list=get_friends_list(), 
                                                game_type=game_type, 
                                                lobby_id=lobby_id)