mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-21 23:12:19 +00:00
A lot has happened since May that I couldn't begin to describe what was working at the time. What I can tell you that is new as of this commit is an upcoming VR mode.
42 lines
No EOL
570 B
Markdown
42 lines
No EOL
570 B
Markdown
# Open City Spec
|
|
|
|
*This ia WIP save file structure.*
|
|
|
|
Save file in City Limits are nothing more than JSON files.
|
|
|
|
## Top-level
|
|
|
|
```json
|
|
{
|
|
"city": "",
|
|
"mayor": "",
|
|
"version": "",
|
|
}
|
|
```
|
|
|
|
## Zones
|
|
|
|
```json
|
|
{
|
|
"zones": {
|
|
"commercial": {},
|
|
"residential": {},
|
|
"industrial": {}
|
|
}
|
|
}
|
|
```
|
|
|
|
Within each zone type are the zones themselves with their coordinates on the map. Each zone is given a random number as an id.
|
|
|
|
```json
|
|
{
|
|
"1": {
|
|
"x": 654,
|
|
"y": 564
|
|
},
|
|
"2": {
|
|
"x": 321,
|
|
"y": 85
|
|
}
|
|
}
|
|
``` |