Skip to content

Commit 3fe423a

Browse files
committed
use json for region map sections
- update nlohmann/json and pantor/inja in tools/ - create new inja template
1 parent 5160520 commit 3fe423a

File tree

8 files changed

+16274
-14220
lines changed

8 files changed

+16274
-14220
lines changed

json_data_rules.mk

+6
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ $(DATA_SRC_SUBDIR)/wild_encounters.h: $(DATA_SRC_SUBDIR)/wild_encounters.json $(
66
$(JSONPROC) $^ $@
77

88
$(C_BUILDDIR)/wild_encounter.o: c_dep += $(DATA_SRC_SUBDIR)/wild_encounters.h
9+
10+
AUTO_GEN_TARGETS += $(DATA_SRC_SUBDIR)/region_map/region_map_entries.h
11+
$(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
12+
$(JSONPROC) $^ $@
13+
14+
$(C_BUILDDIR)/region_map.o: c_dep += $(DATA_SRC_SUBDIR)/region_map/region_map_entries.h

src/data/region_map/region_map_entries.h

-418
This file was deleted.

0 commit comments

Comments
 (0)