コード例 #1
0
ファイル: server.py プロジェクト: zamronypj/unknown-horizons
	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())
コード例 #2
0
	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())
コード例 #3
0
ファイル: server.py プロジェクト: zamronypj/unknown-horizons
	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())
コード例 #4
0
	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())