add entity prototype

This commit is contained in:
Adam 2022-05-07 20:29:39 +02:00
parent 688b2c7bcb
commit 4cb7d0e1f3

View file

@ -24,4 +24,29 @@ sealed interface FactorioPrototype {
/** Can the tile be mined for resources? */
val canBeMined: Boolean,
) : FactorioPrototype
@SerialName("kafkatorio.prototype.Entity")
@Serializable
data class Entity(
override val name: PrototypeName,
override val mapColour: Colour,
val type: String,
val objectName: String,
val colour: Colour,
val maxHealth: Float,
val isBuilding: Boolean,
val isEntityWithOwner: Boolean,
val isMilitaryTarget: Boolean,
val miningProperties: MiningProperties
) : FactorioPrototype {
@Serializable
data class MiningProperties(
val canBeMined: Boolean,
val products: List<MinedProduct>?,
)
}
}