#include <overworld_undo_actions.h>


Public Types | |
| using | ApplyFn = std::function<absl::Status(const std::string&)> |
Public Member Functions | |
| OverworldProjectLabelEditAction (std::string before, std::string 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 | |
| std::string | before_ |
| std::string | after_ |
| ApplyFn | apply_ |
| std::string | description_ |
Definition at line 331 of file overworld_undo_actions.h.
| using yaze::editor::OverworldProjectLabelEditAction::ApplyFn = std::function<absl::Status(const std::string&)> |
Definition at line 333 of file overworld_undo_actions.h.
|
inline |
Definition at line 335 of file overworld_undo_actions.h.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 342 of file overworld_undo_actions.h.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 350 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 358 of file overworld_undo_actions.h.
References description_.
|
inlineoverridevirtual |
Approximate memory footprint for budget enforcement.
Reimplemented from yaze::editor::UndoAction.
Definition at line 360 of file overworld_undo_actions.h.
References after_, before_, 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 364 of file overworld_undo_actions.h.
|
private |
Definition at line 367 of file overworld_undo_actions.h.
Referenced by MemoryUsage(), and Undo().
|
private |
Definition at line 368 of file overworld_undo_actions.h.
Referenced by MemoryUsage(), and Redo().
|
private |
Definition at line 369 of file overworld_undo_actions.h.
|
private |
Definition at line 370 of file overworld_undo_actions.h.
Referenced by Description(), and MemoryUsage().