Skip to main content
Verticopolis engineGitHub

encode_vctower

Function encode_vctower 

Source
pub fn encode_vctower(save: &Value) -> Result<Vec<u8>, String>
Expand description

Writes save JSON as .vctower file bytes, as given. To write a player’s tower, stamp it first with stamp_save, or use encode_simulation_vctower, which does both: a save with no stamp loads as a founder’s tower. Refuses a save larger than a loader accepts.