mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-24 14:49:23 +07:00
Remove default values that were serialized per tile - reduced 12.5% of file size!
This commit is contained in:
@ -1076,8 +1076,8 @@ class Tile : IsPartOfGameInfoSerialization, Json.Serializable {
|
||||
override fun write(json: Json) {
|
||||
json.writeFields(this)
|
||||
// Compatibility code for the case an improvementQueue-using game is loaded by an older version: Write fake fields
|
||||
json.writeValue("improvementInProgress", improvementInProgress, String::class.java)
|
||||
json.writeValue("turnsToImprovement", turnsToImprovement, Int::class.java)
|
||||
if (improvementInProgress != null) json.writeValue("improvementInProgress", improvementInProgress, String::class.java)
|
||||
if (turnsToImprovement != 0) json.writeValue("turnsToImprovement", turnsToImprovement, Int::class.java)
|
||||
}
|
||||
|
||||
override fun read(json: Json, jsonData: JsonValue) {
|
||||
|
Reference in New Issue
Block a user