DEADSOFTWARE

Add environment damage
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / model / block / CommonBlockParams.kt
index 2f4de93213925d17a66959b7e377b758663822f2..202b191bf21d9859fb56d44642d8d5dc043e4655 100644 (file)
@@ -1,9 +1,10 @@
 package ru.deadsoftware.cavedroid.game.model.block
 
 import com.badlogic.gdx.graphics.Texture
+import ru.deadsoftware.cavedroid.game.model.item.Item
 
 data class CommonBlockParams(
-    @Deprecated(ID_DEPRECATION_MESSAGE) val id: Int,
+    @Deprecated("numeric id's will be removed") val id: Int?,
     val key: String,
     val collisionMargins: BlockMargins,
     val hitPoints: Int,
@@ -15,8 +16,7 @@ data class CommonBlockParams(
     val animationInfo: BlockAnimationInfo?,
     val texture: Texture?,
     val spriteMargins: BlockMargins,
-) {
-    companion object {
-        private const val ID_DEPRECATION_MESSAGE = "numeric id's will be removed"
-    }
-}
+    val toolLevel: Int,
+    val toolType: Class<out Item.Tool>?,
+    val damage: Int,
+)