Work Life (Visual Novel / Game)
Loading...
Searching...
No Matches
save_state Namespace Reference

save state cover how SRAM is mapped More...

Classes

struct  SaveState
 SaveState holds 3 game states. More...
 

Functions

void read_all_saves ()
 read SRAM and load into save_state::save
 
void save_slot_selected (int slot)
 load a particular game state (state::GameState) from save_state::save (SaveState::states) into the global game state (state::st)
 
void write_to_slot (int slot)
 write the global game state (state::st) into a particular save slot (save_state::save 's SaveState::states)
 
void render_save_slot (int slot, bn::fixed x, bn::fixed y, bn::sprite_text_generator gen, bn::vector< bn::sprite_ptr, 96 > *sprites)
 paint a save slot on the save screen
 

Variables

SaveState save
 singular global SaveSate
 

Detailed Description

save state cover how SRAM is mapped

it handles saving/loading the (singular) global game state and a particular save slot