#include <pit_damage_table.h>
Public Member Functions | |
| absl::Status | SaveToRom (Rom *rom) const |
| const std::vector< uint16_t > & | room_ids () const |
| bool | Contains (uint16_t room_id) const |
| void | SetRoomIds (std::vector< uint16_t > room_ids) |
| absl::Status | ReplaceRoomId (uint16_t old_room_id, uint16_t new_room_id) |
| void | MarkDirty () |
| void | ClearDirty () |
| bool | dirty () const |
Static Public Member Functions | |
| static absl::Status | LoadFromRom (Rom *rom, PitDamageTable *out) |
Private Attributes | |
| std::vector< uint16_t > | room_ids_ |
| bool | dirty_ = false |
Definition at line 16 of file pit_damage_table.h.
|
static |
Definition at line 24 of file pit_damage_table.cc.
References dirty_, yaze::Rom::is_loaded(), yaze::zelda3::kPitCount, yaze::zelda3::kPitPointer, room_ids(), room_ids_, yaze::SnesToPc(), and yaze::Rom::vector().
Referenced by yaze::zelda3::LoadGameData().

| absl::Status yaze::zelda3::PitDamageTable::SaveToRom | ( | Rom * | rom | ) | const |
Definition at line 61 of file pit_damage_table.cc.
References yaze::Rom::is_loaded(), yaze::zelda3::kNumberOfRooms, yaze::zelda3::kPitCount, yaze::zelda3::kPitPointer, room_ids_, yaze::SnesToPc(), yaze::Rom::vector(), and yaze::Rom::WriteVector().
Referenced by yaze::zelda3::SaveAllPits().

|
inline |
Definition at line 21 of file pit_damage_table.h.
References room_ids_.
Referenced by yaze::editor::anonymous_namespace{dungeon_pit_damage_view_model.cc}::FirstPitDamageMember(), LoadFromRom(), and SetRoomIds().
| bool yaze::zelda3::PitDamageTable::Contains | ( | uint16_t | room_id | ) | const |
Definition at line 113 of file pit_damage_table.cc.
References room_ids_.
Referenced by yaze::editor::AddCurrentRoomToPitDamage(), yaze::editor::BuildPitDamageMembershipState(), yaze::editor::anonymous_namespace{dungeon_pit_damage_view_model.cc}::FirstNonPitDamageRoom(), yaze::editor::RemoveCurrentRoomFromPitDamage(), and ReplaceRoomId().
| void yaze::zelda3::PitDamageTable::SetRoomIds | ( | std::vector< uint16_t > | room_ids | ) |
Definition at line 118 of file pit_damage_table.cc.
References dirty_, room_ids(), and room_ids_.

| absl::Status yaze::zelda3::PitDamageTable::ReplaceRoomId | ( | uint16_t | old_room_id, |
| uint16_t | new_room_id ) |
Definition at line 123 of file pit_damage_table.cc.
References Contains(), dirty_, yaze::zelda3::kNumberOfRooms, and room_ids_.
Referenced by yaze::editor::AddCurrentRoomToPitDamage(), and yaze::editor::RemoveCurrentRoomFromPitDamage().

|
inline |
Definition at line 25 of file pit_damage_table.h.
References dirty_.
Referenced by yaze::editor::DungeonEditorV2::RollbackSaveTransaction().
|
inline |
Definition at line 26 of file pit_damage_table.h.
References dirty_.
Referenced by yaze::editor::DungeonEditorV2::RollbackSaveTransaction(), and yaze::zelda3::SaveAllPits().
|
inline |
Definition at line 27 of file pit_damage_table.h.
References dirty_.
Referenced by yaze::editor::DungeonEditorV2::BeginSaveTransaction(), yaze::editor::BuildPitDamageMembershipState(), and yaze::zelda3::SaveAllPits().
|
private |
Definition at line 30 of file pit_damage_table.h.
Referenced by Contains(), LoadFromRom(), ReplaceRoomId(), room_ids(), SaveToRom(), and SetRoomIds().
|
private |
Definition at line 31 of file pit_damage_table.h.
Referenced by ClearDirty(), dirty(), LoadFromRom(), MarkDirty(), ReplaceRoomId(), and SetRoomIds().