Regions to enum

This commit is contained in:
Eduardo Quezada 2024-12-31 17:03:52 -03:00
parent 54cddb12e6
commit 74fea0d520

View file

@ -2,16 +2,20 @@
#define GUARD_CONSTANTS_REGIONS_H #define GUARD_CONSTANTS_REGIONS_H
// Core-series regions // Core-series regions
#define REGION_KANTO 0 enum Region
#define REGION_JOHTO 1 {
#define REGION_HOENN 2 REGION_KANTO,
#define REGION_SINNOH 3 REGION_JOHTO,
#define REGION_UNOVA 4 REGION_HOENN,
#define REGION_KALOS 5 REGION_SINNOH,
#define REGION_ALOLA 6 REGION_UNOVA,
#define REGION_GALAR 7 REGION_KALOS,
#define REGION_HISUI 8 REGION_ALOLA,
#define REGION_PALDEA 9 REGION_GALAR,
REGION_HISUI,
REGION_PALDEA,
REGION_COUNT,
}
// TODO: Since there's no current multi-region support, we have this constant for the purposes of regional form comparisons. // TODO: Since there's no current multi-region support, we have this constant for the purposes of regional form comparisons.
#define REGION_CURRENT REGION_HOENN #define REGION_CURRENT REGION_HOENN