mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
completely abolishing GSON; new save format impl wip
This commit is contained in:
@@ -20,7 +20,7 @@ import java.io.IOException
|
||||
*/
|
||||
object BlockCodex {
|
||||
|
||||
private var blockProps = HashMap<ItemID, BlockProp>()
|
||||
val blockProps = HashMap<ItemID, BlockProp>()
|
||||
|
||||
val dynamicLights = SortedArrayList<ItemID>() // does not include virtual ones
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import net.torvald.gdx.graphics.Cvec
|
||||
import net.torvald.random.XXHash32
|
||||
import net.torvald.terrarum.gameitem.ItemID
|
||||
import net.torvald.terrarum.gameworld.fmod
|
||||
import net.torvald.terrarum.serialise.toLittle
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 2016-02-16.
|
||||
@@ -92,7 +91,7 @@ class BlockProp {
|
||||
|
||||
var material: String = ""
|
||||
|
||||
var rngBase0 = Math.random().toFloat() // initial cycle phase (xxxxFuncX)
|
||||
var rngBase1 = Math.random().toFloat() // flicker P0, etc
|
||||
var rngBase2 = Math.random().toFloat() // flicker P1, etc
|
||||
@Transient var rngBase0 = Math.random().toFloat() // initial cycle phase (xxxxFuncX)
|
||||
@Transient var rngBase1 = Math.random().toFloat() // flicker P0, etc
|
||||
@Transient var rngBase2 = Math.random().toFloat() // flicker P1, etc
|
||||
}
|
||||
@@ -17,7 +17,7 @@ import java.io.IOException
|
||||
*/
|
||||
object WireCodex {
|
||||
|
||||
private var wireProps = HashMap<ItemID, WireProp>()
|
||||
val wireProps = HashMap<ItemID, WireProp>()
|
||||
|
||||
private val nullProp = WireProp()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user