yog-event 0.9.1

Yog event system — pub/sub for game/server events.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! The server starting and stopping.

use yog_data::Schema;

/// Fired once the server has started.
#[derive(Debug, Clone, Schema)]
pub struct Started {
    /// The world's folder.
    pub world_dir: String,
}

/// Fired as the server stops.
#[derive(Debug, Clone, Schema)]
pub struct Stopping {}