#include <dungeon_undo_actions.h>


Public Types | |
| using | RestoreFn |
Public Member Functions | |
| DungeonCustomCollisionAction (int room_id, zelda3::CustomCollisionMap before, zelda3::CustomCollisionMap after, RestoreFn restore) | |
| absl::Status | Undo () override |
| absl::Status | Redo () override |
| std::string | Description () const override |
| Human-readable description (e.g., "Paint 12 tiles on map 5") | |
| size_t | MemoryUsage () const override |
| Approximate memory footprint for budget enforcement. | |
| bool | CanMergeWith (const UndoAction &) const override |
Public Member Functions inherited from yaze::editor::UndoAction | |
| virtual | ~UndoAction ()=default |
| virtual void | MergeWith (UndoAction &) |
Private Attributes | |
| int | room_id_ |
| zelda3::CustomCollisionMap | before_ |
| zelda3::CustomCollisionMap | after_ |
| RestoreFn | restore_ |
Definition at line 85 of file dungeon_undo_actions.h.
Definition at line 87 of file dungeon_undo_actions.h.
|
inline |
Definition at line 90 of file dungeon_undo_actions.h.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 98 of file dungeon_undo_actions.h.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 107 of file dungeon_undo_actions.h.
|
inlineoverridevirtual |
Human-readable description (e.g., "Paint 12 tiles on map 5")
Implements yaze::editor::UndoAction.
Definition at line 116 of file dungeon_undo_actions.h.
References room_id_.
|
inlineoverridevirtual |
Approximate memory footprint for budget enforcement.
Reimplemented from yaze::editor::UndoAction.
Definition at line 120 of file dungeon_undo_actions.h.
|
inlineoverridevirtual |
Whether this action can merge with the previous action on the stack. Called only when both actions have the same concrete type.
Reimplemented from yaze::editor::UndoAction.
Definition at line 124 of file dungeon_undo_actions.h.
|
private |
Definition at line 127 of file dungeon_undo_actions.h.
Referenced by Description(), Redo(), and Undo().
|
private |
Definition at line 128 of file dungeon_undo_actions.h.
Referenced by MemoryUsage(), and Undo().
|
private |
Definition at line 129 of file dungeon_undo_actions.h.
Referenced by MemoryUsage(), and Redo().
|
private |
Definition at line 130 of file dungeon_undo_actions.h.