Snapshot of a custom ZSprite's editable state for undo/redo. More...
#include <sprite_undo_actions.h>
Public Attributes | |
| int | sprite_index = -1 |
| zsprite::ZSprite | sprite_data |
| int | current_frame = 0 |
| int | current_animation_index = 0 |
Snapshot of a custom ZSprite's editable state for undo/redo.
Captures the entire ZSprite data plus the editor's selection indices, which is sufficient to fully restore the editing state after any mutation to the custom sprite's properties, animations, frames, or routines.
Definition at line 24 of file sprite_undo_actions.h.
| int yaze::editor::SpriteSnapshot::sprite_index = -1 |
Definition at line 25 of file sprite_undo_actions.h.
Referenced by yaze::editor::SpriteEditor::CaptureCurrentSpriteSnapshot(), yaze::editor::SpriteEditAction::Description(), and yaze::editor::SpriteEditor::RestoreFromSnapshot().
| zsprite::ZSprite yaze::editor::SpriteSnapshot::sprite_data |
Definition at line 26 of file sprite_undo_actions.h.
Referenced by yaze::editor::SpriteEditor::CaptureCurrentSpriteSnapshot(), yaze::editor::SpriteEditAction::Description(), yaze::editor::SpriteEditAction::MemoryUsage(), and yaze::editor::SpriteEditor::RestoreFromSnapshot().
| int yaze::editor::SpriteSnapshot::current_frame = 0 |
Definition at line 27 of file sprite_undo_actions.h.
Referenced by yaze::editor::SpriteEditor::CaptureCurrentSpriteSnapshot(), and yaze::editor::SpriteEditor::RestoreFromSnapshot().
| int yaze::editor::SpriteSnapshot::current_animation_index = 0 |
Definition at line 28 of file sprite_undo_actions.h.
Referenced by yaze::editor::SpriteEditor::CaptureCurrentSpriteSnapshot(), and yaze::editor::SpriteEditor::RestoreFromSnapshot().