Update overworld map accessors
This commit is contained in:
@@ -24,6 +24,7 @@ static constexpr int kTileOffsets[] = {0, 8, 4096, 4104};
|
||||
|
||||
class OverworldMap {
|
||||
public:
|
||||
OverworldMap() = default;
|
||||
OverworldMap(int index, ROM& rom, std::vector<gfx::Tile16>& tiles16);
|
||||
|
||||
absl::Status BuildMap(int count, int game_state, int world, uchar* map_parent,
|
||||
@@ -38,6 +39,12 @@ class OverworldMap {
|
||||
auto IsInitialized() const { return initialized_; }
|
||||
auto Parent() const { return parent_; }
|
||||
|
||||
auto mutable_area_graphics() { return &area_graphics_; }
|
||||
auto mutable_area_palette() { return &area_palette_; }
|
||||
auto mutable_sprite_graphics(int i) { return &sprite_graphics_[i]; }
|
||||
auto mutable_sprite_palette(int i) { return &sprite_palette_[i]; }
|
||||
auto mutable_message_id() { return &message_id_; }
|
||||
|
||||
private:
|
||||
void LoadAreaInfo();
|
||||
|
||||
@@ -61,9 +68,9 @@ class OverworldMap {
|
||||
int parent_ = 0;
|
||||
int index_ = 0;
|
||||
int world_ = 0;
|
||||
int message_id_ = 0;
|
||||
int area_graphics_ = 0;
|
||||
int area_palette_ = 0;
|
||||
uint8_t message_id_ = 0;
|
||||
uint8_t area_graphics_ = 0;
|
||||
uint8_t area_palette_ = 0;
|
||||
int game_state_ = 0;
|
||||
|
||||
int world_index_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user