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

Snapshot of a custom ZSprite's editable state for undo/redo. More...

#include <sprite_undo_actions.h>

Collaboration diagram for yaze::editor::SpriteSnapshot:

Public Attributes

int sprite_index = -1
 
zsprite::ZSprite sprite_data
 
int current_frame = 0
 
int current_animation_index = 0
 

Detailed Description

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.

Member Data Documentation

◆ sprite_index

◆ sprite_data

◆ current_frame

int yaze::editor::SpriteSnapshot::current_frame = 0

◆ current_animation_index

int yaze::editor::SpriteSnapshot::current_animation_index = 0

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