mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-19 06:54:05 +09:00
signs persisting through load/save
This commit is contained in:
@@ -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"
|
||||
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user