Skip to content

WorldGraphicSettings

data class WorldGraphicSettings(
val height: Int,
val delay: Int,
val lifespanCycles: Int? = null
) : Component()
Example
fun burst(effect: GraphicDefinition, at: Tile4) {
val graphic = WorldGraphic.create(effect.id, at.tile, height = 50, delay = 10)
World.registerWorldGraphic(graphic)
Logger.info("it starts after ${graphic.getComponent<WorldGraphicSettings>().delay} client cycles")
}
val height: Int
val delay: Int
val lifespanCycles: Int?