Refactor Rom for improved readability
This commit is contained in:
@@ -119,7 +119,7 @@ static const std::map<Z3_Version, VersionConstants> kVersionConstantsMap = {
|
||||
}}};
|
||||
|
||||
constexpr uint32_t kNumGfxSheets = 223;
|
||||
constexpr uint32_t kNumLinkSheets = 14;
|
||||
constexpr uint32_t kNumLinkSheets = 14;
|
||||
constexpr uint32_t kNormalGfxSpaceStart = 0x87000;
|
||||
constexpr uint32_t kNormalGfxSpaceEnd = 0xC4200;
|
||||
constexpr uint32_t kFontSpriteLocation = 0x70000;
|
||||
@@ -520,11 +520,17 @@ class Rom : public core::ExperimentFlags {
|
||||
// All graphics sheets for Link
|
||||
std::array<gfx::Bitmap, kNumLinkSheets> link_graphics_;
|
||||
|
||||
Z3_Version version_ = Z3_Version::US;
|
||||
|
||||
gfx::SnesPalette link_palette_;
|
||||
gfx::PaletteGroupMap palette_groups_;
|
||||
// Label manager for unique resource names.
|
||||
core::ResourceLabelManager resource_label_manager_;
|
||||
|
||||
// Link's palette
|
||||
gfx::SnesPalette link_palette_;
|
||||
|
||||
// All palette groups in the game
|
||||
gfx::PaletteGroupMap palette_groups_;
|
||||
|
||||
// Version of the game
|
||||
Z3_Version version_ = Z3_Version::US;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user