Skip to content

JingleDefinition

interface JingleDefinition
Example
fun celebrate(player: Actor, fanfare: JingleDefinition) {
player.findComponent<Audio>()?.playJingle(fanfare)
player.message("Congratulations! (${fanfare.durationInMilliseconds / 1000} seconds of fanfare)")
}
val name: String
val id: Int
val asset: Asset
val durationInMilliseconds: Int