def onStateLobby(self): trace('onStateLobby') playerId = getCurrentPlayerId() if playerId is not None and self.currentPlayerId != playerId: self.currentPlayerId = playerId token.checkVersion() token.initializeXvmToken() g_websock.send('id/%d' % playerId) lobby = getLobbyApp() if lobby is not None: lobby.loaderManager.onViewLoaded += self.onViewLoaded # TODO """
def onStateLogin(self): trace('onStateLogin') if self.currentPlayerId is not None: self.currentPlayerId = None g_websock.send('id') token.clearToken()
def onShowLogin(self, e=None): if self.currentPlayerId is not None: self.currentPlayerId = None g_websock.send('id')
def onShowLobby(self, e=None): playerId = getCurrentPlayerId() if playerId is not None and self.currentPlayerId != playerId: self.currentPlayerId = playerId g_websock.send('id/%d' % playerId)