event_bin_gen = generator(
    event_py,
    arguments: [ '@INPUT@', '@OUTPUT@', ],
    output: '@BASENAME@',
    depends: [ py_consts_generators ],
)

events_files = files(
    'events_empty.json',
    'events_underground.json',
    'events_jubilife_city.json',
    'events_jubilife_city_mart.json',
    'events_jubilife_city_unknown_house_1.json',
    'events_jubilife_city_pokecenter_1f.json',
    'events_jubilife_city_pokecenter_2f.json',
    'events_poketch_co_1f.json',
    'events_poketch_co_2f.json',
    'events_poketch_co_3f.json',
    'events_jubilife_tv_1f.json',
    'events_jubilife_tv_2f.json',
    'events_jubilife_tv_3f.json',
    'events_jubilife_tv_4f.json',
    'events_jubilife_tv_2f_gallery.json',
    'events_jubilife_tv_3f_global_ranking_room.json',
    'events_jubilife_tv_3f_group_ranking_room.json',
    'events_jubilife_tv_elevator.json',
    'events_jubilife_city_south_house_1f.json',
    'events_jubilife_city_south_house_2f.json',
    'events_jubilife_city_south_house_3f.json',
    'events_jubilife_city_south_house_4f.json',
    'events_jubilife_city_unknown_house_2.json',
    'events_jubilife_city_condominiums_1f.json',
    'events_jubilife_city_condominiums_2f.json',
    'events_jubilife_city_condominiums_3f.json',
    'events_jubilife_city_condominiums_4f.json',
    'events_global_terminal_1f.json',
    'events_trainers_school.json',
    'events_jubilife_city_southwest_house_1f.json',
    'events_jubilife_city_unknown_house_3.json',
    'events_jubilife_city_unknown_house_4.json',
    'events_canalave_city.json',
    'events_canalave_city_mart.json',
    'events_canalave_city_gym.json',
    'events_canalave_city_pokecenter_1f.json',
    'events_canalave_city_pokecenter_2f.json',
    'events_canalave_library_1f.json',
    'events_canalave_library_2f.json',
    'events_canalave_library_3f.json',
    'events_canalave_city_southeast_house.json',
    'events_canalave_city_east_house.json',
    'events_canalave_city_harbor_inn.json',
    'events_canalave_city_sailor_eldritch_house.json',
    'events_oreburgh_city.json',
    'events_oreburgh_city_mart.json',
    'events_oreburgh_city_gym.json',
    'events_oreburgh_city_pokecenter_1f.json',
    'events_oreburgh_city_pokecenter_2f.json',
    'events_oreburgh_city_northwest_house_1f.json',
    'events_oreburgh_city_northwest_house_2f.json',
    'events_oreburgh_city_northwest_house_3f.json',
    'events_oreburgh_city_northwest_house_4f.json',
    'events_oreburgh_city_north_house_1f.json',
    'events_oreburgh_city_north_house_2f.json',
    'events_oreburgh_city_north_house_3f.json',
    'events_oreburgh_city_north_house_4f.json',
    'events_oreburgh_city_middle_house.json',
    'events_mining_museum.json',
    'events_oreburgh_city_west_house.json',
    'events_oreburgh_city_east_house_1f.json',
    'events_oreburgh_city_east_house_2f.json',
    'events_oreburgh_city_east_house_3f.json',
    'events_oreburgh_city_south_house.json',
    'events_eterna_city.json',
    'events_eterna_city_mart.json',
    'events_eterna_city_gym.json',
    'events_eterna_city_dp_gym.json',
    'events_eterna_city_pokecenter_1f.json',
    'events_eterna_city_pokecenter_2f.json',
    'events_cycle_shop.json',
    'events_team_galactic_eterna_building_1f.json',
    'events_team_galactic_eterna_building_2f.json',
    'events_team_galactic_eterna_building_3f.json',
    'events_team_galactic_eterna_building_4f.json',
    'events_eterna_city_condominiums_1f.json',
    'events_eterna_city_condominiums_2f.json',
    'events_eterna_city_condominiums_3f.json',
    'events_eterna_city_condominiums_4f.json',
    'events_route_206_cycling_road_north_gate.json',
    'events_eterna_city_herb_shop.json',
    'events_eterna_city_south_house.json',
    'events_eterna_city_east_house.json',
    'events_eterna_city_underground_man_house.json',
    'events_eterna_city_unknown_house.json',
    'events_hearthome_city.json',
    'events_hearthome_city_mart.json',
    'events_hearthome_city_gym_entrance_room.json',
    'events_hearthome_city_gym_trainer_room_1.json',
    'events_hearthome_city_gym_trainer_room_2.json',
    'events_hearthome_city_gym_leader_room.json',
    'events_hearthome_city_dp_gym_trainer_room_1.json',
    'events_hearthome_city_dp_gym_elevator_room_1.json',
    'events_hearthome_city_dp_gym_trainer_room_2.json',
    'events_hearthome_city_dp_gym_elevator_room_2.json',
    'events_hearthome_city_dp_gym_trainer_room_3.json',
    'events_hearthome_city_dp_gym_trainer_room_4.json',
    'events_hearthome_city_dp_gym_trainer_room_5.json',
    'events_hearthome_city_dp_gym_trainer_room_6.json',
    'events_hearthome_city_dp_gym_leader_room.json',
    'events_hearthome_city_pokecenter_1f.json',
    'events_hearthome_city_pokecenter_2f.json',
    'events_hearthome_city_southeast_house_1f.json',
    'events_hearthome_city_southeast_house_2f.json',
    'events_hearthome_city_southeast_house_elevator.json',
    'events_hearthome_city_pokemon_fan_club.json',
    'events_hearthome_city_west_gate_to_amity_square.json',
    'events_hearthome_city_east_gate_to_amity_square.json',
    'events_route_208_gate_to_hearthome_city.json',
    'events_route_209_gate_to_hearthome_city.json',
    'events_route_212_gate_to_hearthome_city.json',
    'events_hearthome_city_northeast_house_1f.json',
    'events_hearthome_city_northeast_house_2f.json',
    'events_hearthome_city_northeast_house_elevator.json',
    'events_hearthome_city_northwest_house.json',
    'events_poffin_house.json',
    'events_contest_hall_lobby.json',
    'events_contest_hall_stage_ongoing_contest.json',
    'events_foreign_building.json',
    'events_pastoria_city.json',
    'events_pastoria_city_mart.json',
    'events_pastoria_city_gym.json',
    'events_pastoria_city_pokecenter_1f.json',
    'events_pastoria_city_pokecenter_2f.json',
    'events_pastoria_city_observatory_gate_1f.json',
    'events_pastoria_city_observatory_gate_2f.json',
    'events_pastoria_city_southwest_house.json',
    'events_pastoria_city_middle_house.json',
    'events_pastoria_city_east_house.json',
    'events_pastoria_city_north_house.json',
    'events_pastoria_city_northeast_house.json',
    'events_veilstone_city.json',
    'events_veilstone_city_gym.json',
    'events_veilstone_city_pokecenter_1f.json',
    'events_veilstone_city_pokecenter_2f.json',
    'events_game_corner.json',
    'events_veilstone_store_1f.json',
    'events_veilstone_store_2f.json',
    'events_veilstone_store_3f.json',
    'events_veilstone_store_4f.json',
    'events_veilstone_store_5f.json',
    'events_veilstone_store_elevator.json',
    'events_veilstone_city_galactic_warehouse.json',
    'events_veilstone_city_prize_exchange.json',
    'events_veilstone_city_southeast_house.json',
    'events_veilstone_city_northwest_house.json',
    'events_veilstone_city_northeast_house.json',
    'events_veilstone_city_southwest_house.json',
    'events_route_215_gate_to_veilstone_city.json',
    'events_sunyshore_city.json',
    'events_sunyshore_city_pokecenter_1f.json',
    'events_sunyshore_city_pokecenter_2f.json',
    'events_sunyshore_city_mart.json',
    'events_sunyshore_city_gym_room_1.json',
    'events_sunyshore_city_gym_room_2.json',
    'events_sunyshore_city_gym_room_3.json',
    'events_sunyshore_market.json',
    'events_sunyshore_city_northeast_house.json',
    'events_sunyshore_city_west_house.json',
    'events_sunyshore_city_northwest_house.json',
    'events_sunyshore_city_unknown_house_1.json',
    'events_sunyshore_city_unknown_house_2.json',
    'events_sunyshore_city_east_house.json',
    'events_vista_lighthouse.json',
    'events_snowpoint_city.json',
    'events_snowpoint_city_mart.json',
    'events_snowpoint_city_gym.json',
    'events_snowpoint_city_pokecenter_1f.json',
    'events_snowpoint_city_pokecenter_2f.json',
    'events_snowpoint_city_west_house.json',
    'events_snowpoint_city_east_house.json',
    'events_pokemon_league.json',
    'events_pokemon_league_south_pokecenter_1f.json',
    'events_pokemon_league_south_pokecenter_2f.json',
    'events_pokemon_league_north_pokecenter_1f.json',
    'events_pokemon_league_elevator_to_aaron_room.json',
    'events_pokemon_league_aaron_room.json',
    'events_pokemon_league_elevator_to_bertha_room.json',
    'events_pokemon_league_bertha_room.json',
    'events_pokemon_league_elevator_to_flint_room.json',
    'events_pokemon_league_flint_room.json',
    'events_pokemon_league_elevator_to_lucian_room.json',
    'events_pokemon_league_lucian_room.json',
    'events_pokemon_league_elevator_to_champion_room.json',
    'events_pokemon_league_champion_room.json',
    'events_pokemon_league_elevator_to_hall_of_fame.json',
    'events_pokemon_league_hall_of_fame.json',
    'events_fight_area.json',
    'events_fight_area_pokecenter_1f.json',
    'events_fight_area_pokecenter_2f.json',
    'events_fight_area_mart.json',
    'events_battle_park_gate_to_fight_area.json',
    'events_route_225_gate_to_fight_area.json',
    'events_fight_area_middle_house.json',
    'events_fight_area_south_house.json',
    'events_unknown_map_197.json',
    'events_oreburgh_mine_b1f.json',
    'events_oreburgh_mine_b2f.json',
    'events_valley_windworks_outside.json',
    'events_valley_windworks_building.json',
    'events_eterna_forest_outside.json',
    'events_eterna_forest.json',
    'events_fuego_ironworks_outside.json',
    'events_fuego_ironworks_building.json',
    'events_mt_coronet_1f_south.json',
    'events_mt_coronet_2f.json',
    'events_mt_coronet_3f.json',
    'events_mt_coronet_outside_north.json',
    'events_mt_coronet_outside_south.json',
    'events_mt_coronet_4f_rooms_1_and_2.json',
    'events_mt_coronet_4f_room_3.json',
    'events_mt_coronet_5f.json',
    'events_mt_coronet_6f.json',
    'events_mt_coronet_1f_tunnel_room.json',
    'events_mt_coronet_1f_north_room_2.json',
    'events_mt_coronet_1f_north_room_1.json',
    'events_mt_coronet_b1f.json',
    'events_spear_pillar.json',
    'events_spear_pillar_distorted.json',
    'events_pastoria_city_dp_great_marsh.json',
    'events_solaceon_ruins_maniac_tunnel_room.json',
    'events_solaceon_ruins_room_1.json',
    'events_solaceon_ruins_room_2_northeast_dead_end.json',
    'events_solaceon_ruins_room_1_northwest_dead_end.json',
    'events_solaceon_ruins_room_2.json',
    'events_solaceon_ruins_room_1_southeast_dead_end.json',
    'events_solaceon_ruins_room_3.json',
    'events_solaceon_ruins_room_2_southeast_dead_end.json',
    'events_solaceon_ruins_room_6_southeast_dead_end.json',
    'events_solaceon_ruins_room_5_southwest_dead_end.json',
    'events_solaceon_ruins_room_3_northwest_dead_end.json',
    'events_solaceon_ruins_room_3_southwest_dead_end.json',
    'events_solaceon_ruins_room_4.json',
    'events_solaceon_ruins_room_6.json',
    'events_solaceon_ruins_room_5.json',
    'events_solaceon_ruins_room_7.json',
    'events_solaceon_ruins_room_4_southeast_dead_end.json',
    'events_solaceon_ruins_room_6_northwest_dead_end.json',
    'events_victory_road_1f.json',
    'events_victory_road_2f.json',
    'events_victory_road_b1f.json',
    'events_victory_road_1f_room_2.json',
    'events_victory_road_1f_room_1.json',
    'events_victory_road_1f_room_3.json',
    'events_unknown_map_250.json',
    'events_pal_park.json',
    'events_amity_square.json',
    'events_ravaged_path.json',
    'events_unknown_map_255.json',
    'events_floaroma_meadow.json',
    'events_floaroma_meadow_house.json',
    'events_oreburgh_gate_1f.json',
    'events_oreburgh_gate_b1f.json',
    'events_fullmoon_island.json',
    'events_fullmoon_island_forest.json',
    'events_stark_mountain_outside.json',
    'events_stark_mountain_room_1.json',
    'events_stark_mountain_room_2.json',
    'events_stark_mountain_room_3.json',
    'events_sendoff_spring.json',
    'events_turnback_cave_entrance.json',
    'events_turnback_cave_pillar_room.json',
    'events_turnback_cave_giratina_room.json',
    'events_turnback_cave_pillar_1_room_1.json',
    'events_turnback_cave_pillar_1_room_2.json',
    'events_turnback_cave_pillar_1_room_3.json',
    'events_flower_paradise.json',
    'events_snowpoint_temple_1f.json',
    'events_snowpoint_temple_b1f.json',
    'events_snowpoint_temple_b2f.json',
    'events_snowpoint_temple_b3f.json',
    'events_snowpoint_temple_b4f.json',
    'events_snowpoint_temple_b5f.json',
    'events_wayward_cave_1f.json',
    'events_wayward_cave_b1f.json',
    'events_ruin_maniac_cave_short.json',
    'events_trophy_garden.json',
    'events_iron_island.json',
    'events_iron_island_1f.json',
    'events_iron_island_b1f_left_room.json',
    'events_iron_island_b1f_right_room.json',
    'events_iron_island_b2f_right_room.json',
    'events_iron_island_b2f_left_room.json',
    'events_iron_island_b3f.json',
    'events_old_chateau.json',
    'events_old_chateau_dining_area.json',
    'events_old_chateau_side_rooms.json',
    'events_old_chateau_corridor.json',
    'events_old_chateau_back_west_room.json',
    'events_old_chateau_back_middle_west_room.json',
    'events_old_chateau_back_middle_room.json',
    'events_old_chateau_back_middle_east_room.json',
    'events_old_chateau_back_east_room.json',
    'events_galactic_hq_1f.json',
    'events_galactic_hq_2f.json',
    'events_galactic_hq_3f.json',
    'events_galactic_hq_4f.json',
    'events_galactic_hq_b1f.json',
    'events_galactic_hq_b2f.json',
    'events_lake_verity_low_water.json',
    'events_lake_verity.json',
    'events_verity_cavern.json',
    'events_lake_valor_drained.json',
    'events_lake_valor.json',
    'events_valor_cavern.json',
    'events_lake_acuity_low_water.json',
    'events_lake_acuity.json',
    'events_acuity_cavern.json',
    'events_newmoon_island.json',
    'events_newmoon_island_forest.json',
    'events_battle_park.json',
    'events_battle_park_exchange_service_corner.json',
    'events_battle_tower.json',
    'events_battle_tower_elevator.json',
    'events_battle_tower_corridor.json',
    'events_battle_tower_corridor_multi.json',
    'events_battle_tower_battle_room.json',
    'events_battle_tower_multi_battle_room.json',
    'events_communication_club_colosseum_2p.json',
    'events_communication_club_colosseum_4p.json',
    'events_verity_lakefront.json',
    'events_verity_lakefront_unknown_house.json',
    'events_valor_lakefront.json',
    'events_restaurant.json',
    'events_grand_lake_valor_lakefront_east_house.json',
    'events_grand_lake_valor_lakefront_west_house.json',
    'events_acuity_lakefront.json',
    'events_spring_path.json',
    'events_route_201.json',
    'events_route_202.json',
    'events_route_203.json',
    'events_route_204_south.json',
    'events_route_204_north.json',
    'events_route_205_south.json',
    'events_route_205_house.json',
    'events_route_205_north.json',
    'events_route_206.json',
    'events_route_206_cycling_road_south_gate.json',
    'events_gate_between_eterna_city_route_206.json',
    'events_route_207.json',
    'events_route_208.json',
    'events_route_208_house.json',
    'events_route_209.json',
    'events_route_209_lost_tower_1f.json',
    'events_route_209_lost_tower_2f.json',
    'events_route_209_lost_tower_3f.json',
    'events_route_209_lost_tower_4f.json',
    'events_route_209_lost_tower_5f.json',
    'events_route_210_south.json',
    'events_route_210_north.json',
    'events_route_210_grandma_wilma_house.json',
    'events_route_211_west.json',
    'events_route_211_east.json',
    'events_route_212_north.json',
    'events_pokemon_mansion.json',
    'events_pokemon_mansion_maids_room.json',
    'events_pokemon_mansion_office.json',
    'events_route_212_south.json',
    'events_route_212_house.json',
    'events_route_213.json',
    'events_route_213_gate_to_pastoria_city.json',
    'events_footstep_house.json',
    'events_grand_lake_route_213_lobby.json',
    'events_grand_lake_route_213_east_house.json',
    'events_grand_lake_route_213_northwest_house.json',
    'events_grand_lake_route_213_northeast_house.json',
    'events_route_214.json',
    'events_route_214_gate_to_veilstone_city.json',
    'events_route_215.json',
    'events_route_216.json',
    'events_route_216_house.json',
    'events_route_217.json',
    'events_route_217_west_house.json',
    'events_route_217_northeast_house.json',
    'events_route_218.json',
    'events_route_218_gate_to_jubilife_city.json',
    'events_route_218_gate_to_canalave_city.json',
    'events_route_219.json',
    'events_route_221.json',
    'events_pal_park_lobby.json',
    'events_route_221_house.json',
    'events_route_222.json',
    'events_route_222_west_house.json',
    'events_route_222_east_house.json',
    'events_route_222_gate_to_sunyshore_city.json',
    'events_route_224.json',
    'events_route_225.json',
    'events_route_227.json',
    'events_route_228.json',
    'events_route_229.json',
    'events_twinleaf_town.json',
    'events_twinleaf_town_rival_house_1f.json',
    'events_twinleaf_town_rival_house_2f.json',
    'events_twinleaf_town_player_house_1f.json',
    'events_twinleaf_town_player_house_2f.json',
    'events_twinleaf_town_northeast_house.json',
    'events_twinleaf_town_southwest_house.json',
    'events_sandgem_town.json',
    'events_sandgem_town_mart.json',
    'events_sandgem_town_pokecenter_1f.json',
    'events_sandgem_town_pokecenter_2f.json',
    'events_sandgem_town_pokemon_research_lab.json',
    'events_sandgem_town_counterpart_house_1f.json',
    'events_sandgem_town_counterpart_house_2f.json',
    'events_sandgem_town_house.json',
    'events_floaroma_town.json',
    'events_floaroma_town_mart.json',
    'events_floaroma_town_pokecenter_1f.json',
    'events_floaroma_town_pokecenter_2f.json',
    'events_flower_shop.json',
    'events_floaroma_town_southeast_house.json',
    'events_floaroma_town_middle_house.json',
    'events_solaceon_town.json',
    'events_solaceon_town_mart.json',
    'events_solaceon_town_pokecenter_1f.json',
    'events_solaceon_town_pokecenter_2f.json',
    'events_pokemon_day_care.json',
    'events_solaceon_town_northeast_house.json',
    'events_solaceon_town_pokemon_news_press.json',
    'events_solaceon_town_north_house.json',
    'events_solaceon_town_east_house.json',
    'events_celestic_town.json',
    'events_celestic_town_pokecenter_1f.json',
    'events_celestic_town_pokecenter_2f.json',
    'events_celestic_town_north_house.json',
    'events_celestic_town_northwest_house.json',
    'events_celestic_town_northeast_house.json',
    'events_celestic_town_southwest_house.json',
    'events_celestic_town_cave.json',
    'events_survival_area.json',
    'events_survival_area_mart.json',
    'events_survival_area_pokecenter_1f.json',
    'events_survival_area_pokecenter_2f.json',
    'events_battleground.json',
    'events_survival_area_south_house.json',
    'events_survival_area_north_house.json',
    'events_resort_area.json',
    'events_resort_area_mart.json',
    'events_resort_area_pokecenter_1f.json',
    'events_resort_area_pokecenter_2f.json',
    'events_resort_area_ribbon_syndicate_1f.json',
    'events_resort_area_ribbon_syndicate_2f.json',
    'events_resort_area_ribbon_syndicate_elevator.json',
    'events_villa.json',
    'events_resort_area_house.json',
    'events_union_room.json',
    'events_route_220.json',
    'events_route_223.json',
    'events_route_226.json',
    'events_route_230.json',
    'events_seabreak_path.json',
    'events_jubilife_city_pokecenter_b1f.json',
    'events_canalave_city_pokecenter_b1f.json',
    'events_oreburgh_city_pokecenter_b1f.json',
    'events_eterna_city_pokecenter_b1f.json',
    'events_hearthome_city_pokecenter_b1f.json',
    'events_pastoria_city_pokecenter_b1f.json',
    'events_veilstone_city_pokecenter_b1f.json',
    'events_sunyshore_city_pokecenter_b1f.json',
    'events_snowpoint_city_pokecenter_b1f.json',
    'events_pokemon_league_south_pokecenter_b1f.json',
    'events_fight_area_pokecenter_b1f.json',
    'events_sandgem_town_pokecenter_b1f.json',
    'events_floaroma_town_pokecenter_b1f.json',
    'events_solaceon_town_pokecenter_b1f.json',
    'events_celestic_town_pokecenter_b1f.json',
    'events_survival_area_pokecenter_b1f.json',
    'events_resort_area_pokecenter_b1f.json',
    'events_canalave_city_west_house.json',
    'events_cafe.json',
    'events_battle_tower_battle_salon.json',
    'events_galactic_hq_control_room.json',
    'events_pokemon_league_north_pokecenter_2f.json',
    'events_pokemon_league_north_pokecenter_b1f.json',
    'events_galactic_hq_laboratory.json',
    'events_route_225_house.json',
    'events_route_226_house.json',
    'events_route_227_house.json',
    'events_route_228_gate_to_route_226.json',
    'events_route_228_north_house.json',
    'events_route_228_south_house.json',
    'events_great_marsh_1.json',
    'events_great_marsh_2.json',
    'events_great_marsh_3.json',
    'events_great_marsh_4.json',
    'events_great_marsh_5.json',
    'events_great_marsh_6.json',
    'events_hall_of_origin.json',
    'events_ruin_maniac_cave_long.json',
    'events_maniac_tunnel.json',
    'events_iron_island_house.json',
    'events_solaceon_ruins_room_5_southeast_deadend.json',
    'events_vista_lighthouse_elevator.json',
    'events_jubilife_city_southwest_house_2f.json',
    'events_turnback_cave_pillar_1_room_4.json',
    'events_turnback_cave_pillar_1_room_5.json',
    'events_turnback_cave_pillar_1_room_6.json',
    'events_turnback_cave_pillar_2_room_1.json',
    'events_turnback_cave_pillar_2_room_2.json',
    'events_turnback_cave_pillar_2_room_3.json',
    'events_turnback_cave_pillar_2_room_4.json',
    'events_turnback_cave_pillar_2_room_5.json',
    'events_turnback_cave_pillar_2_room_6.json',
    'events_turnback_cave_pillar_3_room_1.json',
    'events_turnback_cave_pillar_3_room_2.json',
    'events_turnback_cave_pillar_3_room_3.json',
    'events_turnback_cave_pillar_3_room_4.json',
    'events_turnback_cave_pillar_3_room_5.json',
    'events_turnback_cave_pillar_3_room_6.json',
    'events_unknown_map_535.json',
    'events_unknown_map_540.json',
    'events_unknown_map_546.json',
    'events_contest_hall_stage_no_contest.json',
    'events_battle_frontier.json',
    'events_battle_frontier_gate_to_fight_area.json',
    'events_battle_factory.json',
    'events_battle_hall.json',
    'events_battle_castle.json',
    'events_battle_arcade.json',
    'events_veilstone_store_b1f.json',
    'events_global_terminal_2f.json',
    'events_global_terminal_3f.json',
    'events_galactic_hq_hall.json',
    'events_rotoms_room.json',
    'events_distortion_world_1f.json',
    'events_spear_pillar_dialga.json',
    'events_spear_pillar_palkia.json',
    'events_wifi_plaza_entrance.json',
    'events_iron_island_iron_ruins.json',
    'events_iron_ruins.json',
    'events_mt_coronet_iceberg_ruins.json',
    'events_iceberg_ruins.json',
    'events_route_228_rock_peak_ruins.json',
    'events_rock_peak_ruins.json',
)

events_headers = []
foreach events_file : events_files
    events_h = events_file.full_path().split('/')[-1].split('.')[0] + '.h'
    events_headers += custom_target(events_h,
        output: events_h,
        input: events_file,
        command: [
            datagen_events_exe,
            events_file,
            events_h,
            meson.current_build_dir(),
        ],
    )
endforeach

events_order = files('zone_event.order')
events_narc = custom_target('zone_event.narc',
    output: [
        'zone_event.narc',
        'zone_event.naix.h',
    ],
    input: event_bin_gen.process(events_files, env: json2bin_env),
    depends: [ py_consts_generators, events_headers],
    command: [
        narc_exe, 'create',
        '--naix',
        '--order', events_order,
        '--output', '@OUTPUT0@',
        '@PRIVATE_DIR@',
    ]
)

nitrofs_files += events_narc
naix_headers += events_narc[1]
