Example #1
0
def _get_resource_database(description: LayoutDescription,
                           player: int) -> ResourceDatabase:
    game_data = description.permalink.get_preset(
        player).layout_configuration.game_data
    return data_reader.read_resource_database(game_data["resource_database"])
Example #2
0
def default_prime2_resource_database() -> ResourceDatabase:
    return read_resource_database(
        default_data.decode_default_prime2()["resource_database"])
Example #3
0
def resource_database_for(game: RandovaniaGame) -> ResourceDatabase:
    return read_resource_database(
        game,
        default_data.read_json_then_binary(game)[1]["resource_database"])
Example #4
0
def _all_tricks(game_data: dict):
    resource_database = data_reader.read_resource_database(game_data["resource_database"])
    return resource_database.trick