persistence
Vars | |
message_bottles_database | A json database to data/message_bottles.json |
---|---|
message_bottles_index | An index used to create unique ids for the message bottles database |
photo_albums_database | A json_database linking to data/photo_albums.json. Schema is persistence_id => array of photo names. |
photo_frames_database | A json_database linking to data/photo_frames.json. Schema is persistence_id => array of photo names. |
piggy_banks_database | A json_database to data/piggy banks.json Schema is persistence_id => array of coins, space cash and holochips. |
prison_tattoos_to_save | tattoo stories that we're saving. |
prison_tattoos_to_use | tattoo stories that have been selected for this round. |
queued_broken_piggy_ids | List of persistene ids which piggy banks. |
queued_message_bottles | A list of non-maploaded photos or papers that met the 0.2% chance to be saved in the message bottles database because I don't want the database to feel empty unless there's someone constantly throwing bottles in the sea or beach/ocean fishing portals. |
queued_photo_albums | A lazy list of every photo album that is going to be loaded with persistent photos. Will be null'd once the persistence system initializes, and never read from again. |
queued_photo_frames | A lazy list of every picture frame that is going to be loaded with persistent photos. Will be null'd once the persistence system initializes, and never read from again. |
saved_engravings | all saved persistent engravings loaded from JSON |
wall_engravings | instantiated wall engraving components |
Procs | |
collect_data | Collects all data to persist. |
collect_maps | Updates the list of the most recent maps. |
collect_trophies | Collects trophies from all existing trophy cases. |
load_custom_outfits | Loads the custom outfits of every admin. |
load_photo_persistence | Loads photo albums, and populates them; also loads and applies frames to picture frames. |
load_piggy_bank | This proc is used to initialize holochips, cash and coins inside our persistent piggy bank. |
load_poly | Loads up Poly's speech buffer. |
load_prisoner_tattoos | Loads all tattoos, and select a few based on the amount of prisoner spawn positions. |
load_randomized_recipes | Loads all randomized recipes. |
load_recent_maps | Loads up the amount of times maps appeared to alter their appearance in voting and rotation. |
load_trophies | Loads the trophies from the source file, and places a few in trophy display cases. |
load_wall_engravings | Loads all engravings, and places a select amount in maintenance and the prison. |
remove_duplicate_trophies | gets the list of json trophies, and deletes the ones with an identical path and message |
remove_photo_frames | Removes the identifier of a persistent photo frame from the json. |
save_custom_outfits | Saves each admin's custom outfit list |
save_message_bottle | This proc is used to save photos, papers and cash stored inside a bottle when tossed into the ocean. |
save_piggy_bank | This proc is used to save money stored inside our persistent the piggy bank for the next time it's loaded. |
save_prisoner_tattoos | Saves all tattoos, so they can appear on prisoners in future rounds |
save_randomized_recipes | Saves all randomized recipes. |
save_scars | Saves all scars for everyone's original characters |
save_trophy | If there is a trophy in the trophy case, saved it, if the trophy was not a holo trophy and has a message attached. |
save_wall_engravings | Saves all new engravings in the world. |
set_up_trophies | Puts trophies into trophy cases. |
trophy_ui_data | Returns a list for the admin trophy panel. |
update_prisoner_tattoos | This proc can update entries if the format has changed at some point. |
update_wall_engravings | This proc can update entries if the format has changed at some point. |
Var Details
message_bottles_database
A json database to data/message_bottles.json
message_bottles_index
An index used to create unique ids for the message bottles database
photo_albums_database
A json_database linking to data/photo_albums.json. Schema is persistence_id => array of photo names.
photo_frames_database
A json_database linking to data/photo_frames.json. Schema is persistence_id => array of photo names.
piggy_banks_database
A json_database to data/piggy banks.json Schema is persistence_id => array of coins, space cash and holochips.
prison_tattoos_to_save
tattoo stories that we're saving.
prison_tattoos_to_use
tattoo stories that have been selected for this round.
queued_broken_piggy_ids
List of persistene ids which piggy banks.
queued_message_bottles
A list of non-maploaded photos or papers that met the 0.2% chance to be saved in the message bottles database because I don't want the database to feel empty unless there's someone constantly throwing bottles in the sea or beach/ocean fishing portals.
queued_photo_albums
A lazy list of every photo album that is going to be loaded with persistent photos. Will be null'd once the persistence system initializes, and never read from again.
queued_photo_frames
A lazy list of every picture frame that is going to be loaded with persistent photos. Will be null'd once the persistence system initializes, and never read from again.
saved_engravings
all saved persistent engravings loaded from JSON
wall_engravings
instantiated wall engraving components
Proc Details
collect_data
Collects all data to persist.
collect_maps
Updates the list of the most recent maps.
collect_trophies
Collects trophies from all existing trophy cases.
load_custom_outfits
Loads the custom outfits of every admin.
load_photo_persistence
Loads photo albums, and populates them; also loads and applies frames to picture frames.
load_piggy_bank
This proc is used to initialize holochips, cash and coins inside our persistent piggy bank.
load_poly
Loads up Poly's speech buffer.
load_prisoner_tattoos
Loads all tattoos, and select a few based on the amount of prisoner spawn positions.
load_randomized_recipes
Loads all randomized recipes.
load_recent_maps
Loads up the amount of times maps appeared to alter their appearance in voting and rotation.
load_trophies
Loads the trophies from the source file, and places a few in trophy display cases.
load_wall_engravings
Loads all engravings, and places a select amount in maintenance and the prison.
remove_duplicate_trophies
gets the list of json trophies, and deletes the ones with an identical path and message
remove_photo_frames
Removes the identifier of a persistent photo frame from the json.
save_custom_outfits
Saves each admin's custom outfit list
save_message_bottle
This proc is used to save photos, papers and cash stored inside a bottle when tossed into the ocean.
save_piggy_bank
This proc is used to save money stored inside our persistent the piggy bank for the next time it's loaded.
save_prisoner_tattoos
Saves all tattoos, so they can appear on prisoners in future rounds
save_randomized_recipes
Saves all randomized recipes.
save_scars
Saves all scars for everyone's original characters
save_trophy
If there is a trophy in the trophy case, saved it, if the trophy was not a holo trophy and has a message attached.
save_wall_engravings
Saves all new engravings in the world.
set_up_trophies
Puts trophies into trophy cases.
trophy_ui_data
Returns a list for the admin trophy panel.
update_prisoner_tattoos
This proc can update entries if the format has changed at some point.
update_wall_engravings
This proc can update entries if the format has changed at some point.