yog-event 0.9.2

Yog event system — pub/sub for game/server events.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The game running on the client.

use yog_data::Schema;

/// Fired every client tick on the render thread.
#[derive(Debug, Clone, Schema)]
pub struct Tick {}

/// The local player's travel step: the first handler to set `velocity`
/// (blocks per tick, drag applied) moves it by that instead of vanilla's.
#[derive(Debug, Clone, Schema)]
pub struct Travel {
    pub frame: yog_body::TravelFrame,
    pub velocity: Option<yog_body::Vec3>,
}