Skip to content

Graphic

data class Graphic(val slots: MutableList<GraphicSlot> = mutableListOf()) : Component()
constructor(
id: Int,
height: Int = 0,
delay: Int = 0,
slot: Int = 0
)
Example
fun sparkle(player: Actor, effect: GraphicDefinition) {
player.replaceComponent(Graphic(effect.id, height = 92))
player.message("You sparkle.")
}
val slots: MutableList<GraphicSlot>