Snapshot of a Menu Tilemap document's raw bytes for undo/redo. More...
#include <screen_undo_actions.h>
Public Attributes | |
| std::string | path |
| std::vector< uint8_t > | bytes |
Snapshot of a Menu Tilemap document's raw bytes for undo/redo.
Stores the whole buffer rather than a per-cell diff: menu tilemaps are at most 2048 bytes, so a full copy per stroke is cheap and keeps the restore path trivial (one memcpy-equivalent, no cell-range bookkeeping).
Definition at line 61 of file screen_undo_actions.h.
| std::string yaze::editor::MenuTilemapSnapshot::path |
Definition at line 62 of file screen_undo_actions.h.
Referenced by yaze::editor::MenuTilemapEditorUI::CommitStroke().
| std::vector<uint8_t> yaze::editor::MenuTilemapSnapshot::bytes |
Definition at line 63 of file screen_undo_actions.h.
Referenced by yaze::editor::MenuTilemapEditorUI::CommitStroke(), and yaze::editor::ScreenEditAction::MemoryUsage().