signs persisting through load/save

This commit is contained in:
minjaesong
2024-03-21 20:57:12 +09:00
parent ec76eb2685
commit d35a73c7a5
14 changed files with 109 additions and 18 deletions

View File

@@ -7,7 +7,6 @@ object Item {
const val TREE_STICK = "item@basegame:18"
const val TREE_SEED_OAK = "item@basegame:160"
const val TREE_LOGS_OAK = "item@basegame:168"
const val COPPER_SIGN = "item@basegame:33280"
}

View File

@@ -84,6 +84,8 @@ class ItemCodex {
get() = CommonResourcePool.getAsTextureRegion("itemplaceholder_24") // copper pickaxe
/**
* Unused IDs are purged when the game saves, as only the active entries are written to the savegame.
*
* @param: dynamicID string of "dyn:<random id>"
*/
fun registerNewDynamicItem(dynamicID: ItemID, item: GameItem) {