-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate region_map_sections from JSON
- Loading branch information
1 parent
bb50006
commit 29d5913
Showing
9 changed files
with
530 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Will be moved to build/ eventually | ||
map_groups.h | ||
layouts.h | ||
region_map_sections.h |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/data/region_map/region_map_sections.constants.json.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{ doNotModifyHeader }} | ||
#ifndef GUARD_CONSTANTS_REGION_MAP_SECTIONS_H | ||
#define GUARD_CONSTANTS_REGION_MAP_SECTIONS_H | ||
|
||
enum { | ||
## for map_section in map_sections | ||
{{ map_section.id }}, | ||
## endfor | ||
MAPSEC_NONE, | ||
MAPSEC_COUNT | ||
}; | ||
|
||
// Values before KANTO_MAPSEC_START are assumed to have no data. | ||
#define KANTO_MAPSEC_START MAPSEC_PALLET_TOWN | ||
|
||
// Values starting from SEVII_MAPSEC_START are assumed to have data in sSeviiMapsecs. | ||
#define SEVII_MAPSEC_START MAPSEC_ONE_ISLAND | ||
|
||
// Special location IDs that use the same value space as MAPSECs. | ||
#define METLOC_SPECIAL_EGG 0xFD | ||
#define METLOC_IN_GAME_TRADE 0xFE | ||
#define METLOC_FATEFUL_ENCOUNTER 0xFF | ||
|
||
#endif // GUARD_CONSTANTS_REGION_MAP_SECTIONS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.