add entity prototype
This commit is contained in:
parent
688b2c7bcb
commit
4cb7d0e1f3
1 changed files with 25 additions and 0 deletions
|
|
@ -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>?,
|
||||
)
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue