GraphicSlot
data class GraphicSlot( val id: Int, val height: Int = 0, val delay: Int = 0, val slot: Int = 0)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: Intheight
Section titled “height”val height: Intval delay: Intval slot: Int