mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 14:04:05 +09:00
extra fields for something-props
This commit is contained in:
@@ -12,6 +12,7 @@ import com.badlogic.gdx.graphics.glutils.ShapeRenderer
|
||||
import com.badlogic.gdx.utils.Disposable
|
||||
import com.jme3.math.FastMath
|
||||
import net.torvald.UnsafeHelper
|
||||
import net.torvald.gdx.graphics.Cvec
|
||||
import net.torvald.random.HQRNG
|
||||
import net.torvald.terrarum.AppLoader.*
|
||||
import net.torvald.terrarum.TerrarumAppConfiguration.TILE_SIZE
|
||||
@@ -654,4 +655,16 @@ val MaterialCodex: MaterialCodex
|
||||
val FactionCodex: FactionCodex
|
||||
get() = Terrarum.factionCodex
|
||||
val Apocryphas: HashMap<String, Any>
|
||||
get() = Terrarum.apocryphas
|
||||
get() = Terrarum.apocryphas
|
||||
|
||||
class Codex : KVHashMap() {
|
||||
|
||||
fun getAsCvec(key: String): Cvec? {
|
||||
val value = get(key)
|
||||
|
||||
if (value == null) return null
|
||||
|
||||
return value as Cvec
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user