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
//! Records written to the game's log.

use yog_data::Schema;

/// A record a mod wrote (`yog_api::info!`…): the runtime puts it in the
/// game's log; anyone else may listen (a debugger's console).
#[derive(Debug, Clone, Schema)]
pub struct Record {
    /// `yog_logging::Level` as a number.
    pub level: u32,
    pub message: String,
}