mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
tapestry sprite to draw frame
This commit is contained in:
@@ -203,6 +203,16 @@ object Common {
|
||||
return rng
|
||||
}
|
||||
})
|
||||
// kotlin.ByteArray
|
||||
jsoner.setSerializer(ByteArray::class.java, object : Json.Serializer<ByteArray> {
|
||||
override fun write(json: Json, obj: ByteArray, knownType: Class<*>?) {
|
||||
json.writeValue(bytesToZipdStr(obj.iterator()))
|
||||
}
|
||||
|
||||
override fun read(json: Json, jsonData: JsonValue, type: Class<*>?): ByteArray {
|
||||
return strToBytes(StringReader(jsonData.asString())).toByteArray()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
private data class LayerInfo(val h: String, val b: String, val x: Int, val y: Int)
|
||||
|
||||
Reference in New Issue
Block a user