Skip to content

GraphicSlot

data class GraphicSlot(
val id: Int,
val height: Int = 0,
val delay: Int = 0,
val slot: Int = 0
)
Example
fun celebrate(player: Actor, fireworks: GraphicDefinition, glow: GraphicDefinition) {
val slots = mutableListOf(GraphicSlot(fireworks.id, slot = 0), GraphicSlot(glow.id, height = 100, slot = 1))
player.replaceComponent(Graphic(slots))
}
val id: Int
val height: Int
val delay: Int
val slot: Int