Skip to main content

yog_event/
scoreboard.rs

1//! The scoreboard: the host's actions.
2
3use yog_ids as ids;
4
5actions! {
6    /// A score.
7    Get { objective: String, player: String } -> Option<i32> = ids::service_scoreboard::GET, "YogScoreboardActions.scoreboardGet";
8    /// Sets a score.
9    Set { objective: String, player: String, score: i32 } -> bool = ids::service_scoreboard::SET, "YogScoreboardActions.scoreboardSet";
10    /// Adds to a score; the new score.
11    Add { objective: String, player: String, delta: i32 } -> Option<i32> = ids::service_scoreboard::ADD, "YogScoreboardActions.scoreboardAdd";
12}