press tab to bring up the game menu

This commit is contained in:
minjaesong
2021-09-26 15:34:24 +09:00
parent 3680047e9a
commit 0e5c86ad04
10 changed files with 120 additions and 50 deletions

View File

@@ -20,7 +20,14 @@ object WriteConfig {
override fun write(json: Json, obj: KVHashMap, knownType: Class<*>?) {
json.writeObjectStart()
obj.hashMap.toSortedMap().forEach { (k, v) ->
json.writeValue(k, v)
json.writeValue(k,
if (v is Int) v as Int
else if (v is Double) v as Double
else if (v is IntArray) v as IntArray
else if (v is DoubleArray) v as DoubleArray
else if (v is Boolean) v as Boolean
else v.toString()
)
}
json.writeObjectEnd()
}