yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::MenuTilemapSnapshot Struct Reference

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
 

Detailed Description

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.

Member Data Documentation

◆ path

std::string yaze::editor::MenuTilemapSnapshot::path

◆ bytes

std::vector<uint8_t> yaze::editor::MenuTilemapSnapshot::bytes

The documentation for this struct was generated from the following file: