def onAvatarBecomePlayer(self): trace('onAvatarBecomePlayer') # check version if game restarted after crash or in replay if not token.versionChecked: token.checkVersion() token.initializeXvmToken() if config.get('autoReloadConfig', False) == True: configwatchdog.startConfigWatchdog()
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 """