yog_event/sound.rs
1//! Sounds: the host's actions.
2
3use crate::Point;
4use yog_ids as ids;
5
6actions! {
7 /// Plays `sound` at `pos`.
8 Play { dim: String, pos: Point, sound: String, volume: f32, pitch: f32 } -> bool = ids::service_sound::PLAY, "YogSoundActions.playSound";
9 /// Plays `sound` to `player` only.
10 PlayToPlayer { player: String, sound: String, volume: f32, pitch: f32 } -> bool = ids::service_sound::PLAY_TO_PLAYER, "YogSoundActions.playSoundToPlayer";
11}