yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gfx::PaletteManager::SessionState Struct Reference

Public Attributes

bool initialized = false
 
uint64_t color_revision = 0
 
std::unordered_map< std::string, std::vector< SnesPalette > > original_palettes
 
std::unordered_map< std::string, std::unordered_set< int > > modified_palettes
 
std::unordered_map< std::string, std::unordered_map< int, std::unordered_set< int > > > modified_colors
 
std::optional< SaveTransactionSnapshot > save_transaction_snapshot
 
std::deque< std::vector< PaletteColorChange > > undo_stack
 
std::deque< std::vector< PaletteColorChange > > redo_stack
 
std::optional< PaletteColorChange > color_edit
 
uint64_t color_edit_caller = 0
 
int batch_depth = 0
 
std::vector< PaletteColorChange > batch_changes
 

Detailed Description

Definition at line 418 of file palette_manager.h.

Member Data Documentation

◆ initialized

bool yaze::gfx::PaletteManager::SessionState::initialized = false

Definition at line 419 of file palette_manager.h.

◆ color_revision

uint64_t yaze::gfx::PaletteManager::SessionState::color_revision = 0

◆ original_palettes

std::unordered_map<std::string, std::vector<SnesPalette> > yaze::gfx::PaletteManager::SessionState::original_palettes

◆ modified_palettes

◆ modified_colors

std::unordered_map<std::string, std::unordered_map<int, std::unordered_set<int> > > yaze::gfx::PaletteManager::SessionState::modified_colors

◆ save_transaction_snapshot

std::optional<SaveTransactionSnapshot> yaze::gfx::PaletteManager::SessionState::save_transaction_snapshot

Definition at line 426 of file palette_manager.h.

Referenced by yaze::gfx::PaletteManager::CommitSaveTransaction().

◆ undo_stack

std::deque<std::vector<PaletteColorChange> > yaze::gfx::PaletteManager::SessionState::undo_stack

◆ redo_stack

std::deque<std::vector<PaletteColorChange> > yaze::gfx::PaletteManager::SessionState::redo_stack

◆ color_edit

std::optional<PaletteColorChange> yaze::gfx::PaletteManager::SessionState::color_edit

Definition at line 429 of file palette_manager.h.

Referenced by yaze::gfx::PaletteManager::BeginColorEdit().

◆ color_edit_caller

uint64_t yaze::gfx::PaletteManager::SessionState::color_edit_caller = 0

Definition at line 430 of file palette_manager.h.

Referenced by yaze::gfx::PaletteManager::BeginColorEdit().

◆ batch_depth

int yaze::gfx::PaletteManager::SessionState::batch_depth = 0

◆ batch_changes

std::vector<PaletteColorChange> yaze::gfx::PaletteManager::SessionState::batch_changes

Definition at line 432 of file palette_manager.h.

Referenced by yaze::gfx::PaletteManager::BeginBatch().


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