yog-event 0.8.0

Yog event system — pub/sub for game/server events.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Sounds: the host's actions.

use crate::Point;
use yog_ids as ids;

actions! {
    /// Plays `sound` at `pos`.
    Play { dim: String, pos: Point, sound: String, volume: f32, pitch: f32 } -> bool = ids::service_sound::PLAY, "YogSoundActions.playSound";
    /// Plays `sound` to `player` only.
    PlayToPlayer { player: String, sound: String, volume: f32, pitch: f32 } -> bool = ids::service_sound::PLAY_TO_PLAYER, "YogSoundActions.playSoundToPlayer";
}