X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavedroid%2Fgame%2Fmodel%2Fdto%2FItemDto.kt;h=373db466baf14f54fb86b352be00acbb8353f3e6;hb=6bb7e1d207c640ff3b8e41ce2fb1c6203985bdb1;hp=0fa2075e5215416efa11bcfbb8405dd4e3c638a6;hpb=a21a93fd9fa33adebe52d1f4478866dcc3b66d96;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt b/core/src/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt index 0fa2075..373db46 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt +++ b/core/src/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt @@ -5,9 +5,8 @@ import kotlinx.serialization.Serializable @Serializable data class ItemDto( - @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, @@ -17,4 +16,8 @@ data class ItemDto( @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, + @SerialName("tint") val tint: String? = null, + @SerialName("burning_time") val burningTime: Long? = null, + @SerialName("smelt_product") val smeltProduct: String? = null, )