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
12
//! The scoreboard: the host's actions.

use yog_ids as ids;

actions! {
    /// A score.
    Get { objective: String, player: String } -> Option<i32> = ids::service_scoreboard::GET, "YogScoreboardActions.scoreboardGet";
    /// Sets a score.
    Set { objective: String, player: String, score: i32 } -> bool = ids::service_scoreboard::SET, "YogScoreboardActions.scoreboardSet";
    /// Adds to a score; the new score.
    Add { objective: String, player: String, delta: i32 } -> Option<i32> = ids::service_scoreboard::ADD, "YogScoreboardActions.scoreboardAdd";
}