#include <overworld_undo_actions.h>


Public Types | |
| using | ApplyFn = std::function<absl::Status(const OverworldPropertyEdit&)> |
Public Member Functions | |
| OverworldMapPropertyEditAction (OverworldPropertyEdit before, OverworldPropertyEdit after, ApplyFn apply, std::string description) | |
| 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 | |
| OverworldPropertyEdit | before_ |
| OverworldPropertyEdit | after_ |
| ApplyFn | apply_ |
| std::string | description_ |
Definition at line 231 of file overworld_undo_actions.h.
| using yaze::editor::OverworldMapPropertyEditAction::ApplyFn = std::function<absl::Status(const OverworldPropertyEdit&)> |
Definition at line 233 of file overworld_undo_actions.h.
|
inline |
Definition at line 235 of file overworld_undo_actions.h.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 243 of file overworld_undo_actions.h.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 251 of file overworld_undo_actions.h.
|
inlineoverridevirtual |
Human-readable description (e.g., "Paint 12 tiles on map 5")
Implements yaze::editor::UndoAction.
Definition at line 259 of file overworld_undo_actions.h.
References description_.
|
inlineoverridevirtual |
Approximate memory footprint for budget enforcement.
Reimplemented from yaze::editor::UndoAction.
Definition at line 261 of file overworld_undo_actions.h.
References after_, before_, yaze::editor::OverworldPropertyEdit::description, and description_.
|
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 266 of file overworld_undo_actions.h.
|
private |
Definition at line 269 of file overworld_undo_actions.h.
Referenced by MemoryUsage(), and Undo().
|
private |
Definition at line 270 of file overworld_undo_actions.h.
Referenced by MemoryUsage(), and Redo().
|
private |
Definition at line 271 of file overworld_undo_actions.h.
|
private |
Definition at line 272 of file overworld_undo_actions.h.
Referenced by Description(), and MemoryUsage().