Exemplo n.º 1
0
    def __init__(self, replay_data, player_name):
        """
        Initializes an OnlineReplay instance.

        Unless you know what you're doing, don't call this method manually -
        this is intented to be called internally by OnlineReplay.from_map.
        """

        Replay.__init__(self, replay_data, player_name)
Exemplo n.º 2
0
    def __init__(self, replay_data, player_name, enabled_mods):
        """
        Initializes a LocalReplay instance.

        Unless you know what you're doing, don't call this method manually -
        this is intented to be called internally by LocalReplay.from_path.

        Args:
            List replay_data: A list of osrpasrse.ReplayEvent objects, containing
                              x, y, time_since_previous_action, and keys_pressed.
            String player_name: An identifier marking the player that did the replay. Name or user id are common.
            Integer enabled_mods: A base10 representation of the enabled mods on the replay.
        """

        Replay.__init__(self, replay_data, player_name, enabled_mods)