mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
completely abolishing GSON; new save format impl wip
This commit is contained in:
@@ -26,7 +26,7 @@ object ItemCodex {
|
||||
* <ItemID or RefID for Actor, TheItem>
|
||||
* Will return corresponding Actor if ID >= ACTORID_MIN
|
||||
*/
|
||||
private val itemCodex = HashMap<ItemID, GameItem>()
|
||||
val itemCodex = HashMap<ItemID, GameItem>()
|
||||
val dynamicItemDescription = HashMap<ItemID, GameItem>()
|
||||
val dynamicToStaticTable = HashMap<ItemID, ItemID>()
|
||||
|
||||
@@ -119,5 +119,5 @@ object ItemCodex {
|
||||
|
||||
}
|
||||
|
||||
fun hasItem(itemID: Int): Boolean = dynamicItemDescription.containsKey(itemID)
|
||||
fun hasItem(itemID: ItemID): Boolean = dynamicItemDescription.containsKey(itemID)
|
||||
}
|
||||
@@ -28,7 +28,7 @@ class Material {
|
||||
|
||||
object MaterialCodex {
|
||||
|
||||
private var materialProps = HashMap<String, Material>()
|
||||
val materialProps = HashMap<String, Material>()
|
||||
private val nullMaterial = Material()
|
||||
|
||||
operator fun invoke(module: String, path: String) {
|
||||
|
||||
Reference in New Issue
Block a user