Animating
data class Animating( val id: Int, val startDelay: Int = 0) : Component()fun wave(player: Actor, emote: AnimationDefinition) { player.replaceComponent(Animating(emote.id)) player.speak("Hello!")}val id: IntstartDelay
Section titled “startDelay”val startDelay: Intstarted
Section titled “started”var started: BooleanremainingCycles
Section titled “remainingCycles”var remainingCycles: IntonComponentAddedToEntity
Section titled “onComponentAddedToEntity”override fun onComponentAddedToEntity()