Skip to content

Commit

Permalink
use json for region map sections
Browse files Browse the repository at this point in the history
  - update nlohmann/json and pantor/inja in tools/
  - create new inja template
  • Loading branch information
garakmon committed Apr 5, 2022
1 parent 5160520 commit 3fe423a
Show file tree
Hide file tree
Showing 8 changed files with 16,274 additions and 14,220 deletions.
6 changes: 6 additions & 0 deletions json_data_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ $(DATA_SRC_SUBDIR)/wild_encounters.h: $(DATA_SRC_SUBDIR)/wild_encounters.json $(
$(JSONPROC) $^ $@

$(C_BUILDDIR)/wild_encounter.o: c_dep += $(DATA_SRC_SUBDIR)/wild_encounters.h

AUTO_GEN_TARGETS += $(DATA_SRC_SUBDIR)/region_map/region_map_entries.h
$(DATA_SRC_SUBDIR)/region_map/region_map_entries.h: $(DATA_SRC_SUBDIR)/region_map/region_map_sections.json $(DATA_SRC_SUBDIR)/region_map/region_map_sections.json.txt
$(JSONPROC) $^ $@

$(C_BUILDDIR)/region_map.o: c_dep += $(DATA_SRC_SUBDIR)/region_map/region_map_entries.h
418 changes: 0 additions & 418 deletions src/data/region_map/region_map_entries.h

This file was deleted.

Loading

0 comments on commit 3fe423a

Please sign in to comment.