kotcity4 / kotcity.data / CityFileAdapter

CityFileAdapter

object CityFileAdapter : Debuggable

Properties

debug

var debug: Boolean

gson

val gson: Gson

Functions

load

fun load(file: File): CityMap

readContracts

fun readContracts(data: JsonObject, cityMap: CityMap): Unit

save

fun save(map: CityMap, file: File): Boolean

writeDesirabilityLayers

fun writeDesirabilityLayers(data: JsonObject, it: SerializerArg<CityMap>): Unit

Inherited Functions

debug

open fun debug(message: String): Unit