Esempio n. 1
0
    def on_server_status(self, e):

        # Disconnect all the registered players
        for player in model_mgr.get_players():
            player.connected = False

        # Reset the game models on server start
        model_mgr.reset_models()
Esempio n. 2
0
    def on_server_status(self, e):

        # Disconnect all the registered players
        for player in model_mgr.get_players():
            player.connected = False

        # Reset the game models on server start
        model_mgr.reset_models()
Esempio n. 3
0
    def on_game_status(self, e):

        # Reset the game models on game start
        if e.game.starting:
            model_mgr.reset_models()
Esempio n. 4
0
    def on_game_status(self, e):

        # Reset the game models on game start
        if e.game.starting:
            model_mgr.reset_models()