def makeGame(self, avatar, name, scenario, available_scenarios): if avatar.game: return new = Game(self, name, scenario) new_id = id(new) new.game_id = new_id self.games_list[new_id] = new new.add_player(avatar, available_scenarios)
def makeGame(self, avatar, name, scenario, available_scenarios): if avatar.game: return new = Game(self, name, scenario) new_id = id(new) new.game_id = new_id self.games_list[new_id] = new new.add_player(avatar, available_scenarios) self.remoteAll('userLeftLobby', avatar.name)