Skip to main content
Verticopolis engineGitHub

export_tdt

Function export_tdt 

Source
pub fn export_tdt(save_json: &str) -> Result<Vec<u8>, String>
Expand description

Writes a Classic game’s save JSON (the text of Simulation::serialize) as a 1994 SimTower .TDT file. The error is a sentence a player can read, or says what made the JSON unusable.