#include <overworld_undo_actions.h>


Public Types | |
| using | ApplyFn = std::function<absl::Status(const OverworldPropertyEdit&)> |
Public Member Functions | |
| OverworldMapPropertyBatchEditAction (std::vector< OverworldPropertyEdit > before, std::vector< 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 | |
| std::vector< OverworldPropertyEdit > | before_ |
| std::vector< OverworldPropertyEdit > | after_ |
| ApplyFn | apply_ |
| std::string | description_ |
Definition at line 275 of file overworld_undo_actions.h.
| using yaze::editor::OverworldMapPropertyBatchEditAction::ApplyFn = std::function<absl::Status(const OverworldPropertyEdit&)> |
Definition at line 277 of file overworld_undo_actions.h.
|
inline |
Definition at line 279 of file overworld_undo_actions.h.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 287 of file overworld_undo_actions.h.
References apply_, before_, and RETURN_IF_ERROR.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 298 of file overworld_undo_actions.h.
References after_, apply_, and RETURN_IF_ERROR.
|
inlineoverridevirtual |
Human-readable description (e.g., "Paint 12 tiles on map 5")
Implements yaze::editor::UndoAction.
Definition at line 309 of file overworld_undo_actions.h.
References description_.
|
inlineoverridevirtual |
Approximate memory footprint for budget enforcement.
Reimplemented from yaze::editor::UndoAction.
Definition at line 311 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 322 of file overworld_undo_actions.h.
|
private |
Definition at line 325 of file overworld_undo_actions.h.
Referenced by MemoryUsage(), and Undo().
|
private |
Definition at line 326 of file overworld_undo_actions.h.
Referenced by MemoryUsage(), and Redo().
|
private |
Definition at line 327 of file overworld_undo_actions.h.
|
private |
Definition at line 328 of file overworld_undo_actions.h.
Referenced by Description(), and MemoryUsage().