def startgame(self, game: Game): """ Instruct all players to start the game. """ logging.debug("[START] [{}] Players: {}". format(game.uuid, [str(i) for i in game.players])) game.state = Game.State.Running self.send_to_game(game, packets.server.cmd_startgame())
def preparegame(self, game: Game): """ Instruct all players to start loading the game. """ logging.debug("[PREPARE] [{}] Players: {}". format(game.uuid, [str(i) for i in game.players])) game.state = Game.State.Prepare self.send_to_game(game, packets.server.cmd_preparegame())