moved Codices out of the singleton so they can be serialised

This commit is contained in:
minjaesong
2021-09-04 17:55:37 +09:00
parent 57e4b83649
commit 6bea9c9f07
42 changed files with 180 additions and 98 deletions

View File

@@ -20,7 +20,7 @@ import java.util.*
*
* Created by minjaesong on 2016-03-15.
*/
object ItemCodex {
class ItemCodex {
/**
* <ItemID or RefID for Actor, TheItem>
@@ -30,7 +30,9 @@ object ItemCodex {
val dynamicItemDescription = HashMap<ItemID, GameItem>()
val dynamicToStaticTable = HashMap<ItemID, ItemID>()
val ACTORID_MIN = ReferencingRanges.ACTORS.first
@Transient val ACTORID_MIN = ReferencingRanges.ACTORS.first
internal constructor()
fun clear() {
itemCodex.clear()