Add RomData, OptionFlags, and enums for them.

Fun error handling with automatic, fallible conversion to and from u8s
for the enums.
This commit is contained in:
Lyle Mantooth 2022-05-29 10:22:34 -04:00
parent c81348fb10
commit a161d9090e
Signed by: IslandUsurper
GPG key ID: 6DB52EAE123A5789
8 changed files with 860 additions and 6 deletions

12
enemize/src/constants.rs Normal file
View file

@ -0,0 +1,12 @@
pub const ROM_HEADER_BANK_LOCATION: usize = 0x0B5E7;
pub const DUNGEON_HEADER_POINTER_TABLE: usize = 0x271E2;
pub const DUNGEON_SPRITE_POINTER_TABLE: usize = 0x4D62E;
pub const OBJECT_DATA_POINTER_TABLE: usize = 0xF8000;
pub const OVERWORLD_AREA_GRAPHICS_BLOCK: usize = 0x007A81;
pub const OVERWORLD_SPRITE_POINTER_TABLE: usize = 0x04C901;
pub const MOLDORM_EYE_COUNT_ADDRESS_VANILLA: usize = 0x0EDBB3;
pub const MOLDORM_EYE_COUNT_ADDRESS_ENEMIZER: usize = 0x1B0102;
pub const NEW_BOSS_GRAPHICS: usize = 0x1B0000;
pub const RANDOM_SPRITE_GRAPHICS: usize = 0x300000;
pub const ENEMIZER_FILE_LENGTH: usize = 0x200000;
pub const HIDDEN_ENEMY_CHANCE_POOL: usize = 0xD7BBB;