WorldSound
class WorldSound : Entity()fun alarm(player: Actor, alarm: SoundEffectDefinition) { val sound: WorldSound = alarm.spawn(player.tile4, radius = 12, loops = 3) Logger.info("alarm sounding at ${sound.tile4}")}create
Section titled “create”fun create( id: Int, tile: Tile3, radius: Int, volume: Int, delay: Int): WorldSoundInherited members
Section titled “Inherited members”Entity:uuid//isAlive//addComponent//replaceComponent//findComponent//getComponent//removeComponent//hasComponent//decommission//resetLook//allComponents//resolve