DEADSOFTWARE

New blocks structure
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / model / block / CommonBlockParams.kt
1 package ru.deadsoftware.cavedroid.game.model.block
3 import com.badlogic.gdx.graphics.Texture
5 data class CommonBlockParams(
6 @Deprecated(ID_DEPRECATION_MESSAGE) val id: Int,
7 val key: String,
8 val collisionMargins: BlockMargins,
9 val hitPoints: Int,
10 val dropInfo: BlockDropInfo?,
11 val hasCollision: Boolean,
12 val isBackground: Boolean,
13 val isTransparent: Boolean,
14 val requiresBlock: Boolean,
15 val animationInfo: BlockAnimationInfo?,
16 val texture: Texture?,
17 val spriteMargins: BlockMargins,
18 ) {
19 companion object {
20 private const val ID_DEPRECATION_MESSAGE = "numeric id's will be removed"
21 }
22 }