Add client inventory sheet management.

This commit is contained in:
Thomas Andres Gomez 2025-04-17 14:29:22 +02:00
parent 8982bab22d
commit 05a376aea8
10 changed files with 325 additions and 118 deletions

View file

@ -15,6 +15,7 @@ data class Inventory(
val inventoryId: String,
val itemId: String,
val count: Int,
val equipped: Boolean,
)
companion object {

View file

@ -21,5 +21,6 @@ data class InventoryJsonV1(
val inventoryId: String,
val itemId: String,
val count: Int,
val equipped: Boolean?,
)
}

View file

@ -18,6 +18,7 @@ class InventoryJsonFactoryV1 {
inventoryId = it.inventoryId,
itemId = it.itemId,
count = it.count,
equipped = it.equipped ?: false,
)
},
)
@ -36,6 +37,7 @@ class InventoryJsonFactoryV1 {
inventoryId = it.inventoryId,
itemId = it.itemId,
count = it.count,
equipped = it.equipped,
)
},
)