DEADSOFTWARE

Add slab full block reference in json
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / objects / Block.kt
index 3343c9ac294b6e18cb7e5812fc62d00ce99415a4..020caf5356c7b4d7dd142afbc7c045f3787e53e2 100644 (file)
@@ -32,6 +32,7 @@ private const val DEPRECATION_MESSAGE =
  * @param spriteTop     block's sprite y on texture
  * @param spriteRight   block's sprite right edge on texture
  * @param spriteBottom  block's sprite bottom on texture
+ * @param fullBlockKey for slabs. block for two slabs of one kind
  */
 data class Block(
         val id: Int,
@@ -54,7 +55,8 @@ data class Block(
         private val spriteLeft: Int,
         private val spriteTop: Int,
         private val spriteRight: Int,
-        private val spriteBottom: Int
+        private val spriteBottom: Int,
+        val fullBlockKey: String?,
 ) {
 
     val width = 16 - right - left