DEADSOFTWARE

Add crafting
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / model / dto / ItemDto.kt
index d46edddc0a2b686ce96e044ebaace2140e829068..fe28e6440adc30a52eadaab656d6bbb9306592f3 100644 (file)
@@ -5,13 +5,17 @@ import kotlinx.serialization.Serializable
 
 @Serializable
 data class ItemDto(
-    @Deprecated("numeric ids will be removed") @SerialName("id") val id: Int,
+    @Deprecated("numeric ids will be removed") @SerialName("id") val id: Int? = null,
     @SerialName("name") val name: String,
-    @SerialName("type") val type: String,
+    @SerialName("type") val type: String = "normal",
     @SerialName("texture") val texture: String,
     @SerialName("origin_x") val originX: Float = 0f,
     @SerialName("origin_y") val origin_y: Float = 1f,
     @SerialName("action_key") val actionKey: String? = null,
     @SerialName("mob_damage_multiplier") val mobDamageMultiplier: Float = 1f,
     @SerialName("block_damage_multiplier") val blockDamageMultiplier: Float = 1f,
+    @SerialName("top_slab_block") val topSlabBlock: String? = null,
+    @SerialName("bottom_slab_block") val bottomSlabBlock: String? = null,
+    @SerialName("tool_level") val toolLevel: Int? = null,
+    @SerialName("max_stack") val maxStack: Int = 64,
 )