yog_event/client/game.rs
1//! The game running on the client.
2
3use yog_data::Schema;
4
5/// Fired every client tick on the render thread.
6#[derive(Debug, Clone, Schema)]
7pub struct Tick {}
8
9/// The local player's travel step: the first handler to set `velocity`
10/// (blocks per tick, drag applied) moves it by that instead of vanilla's.
11#[derive(Debug, Clone, Schema)]
12pub struct Travel {
13 pub frame: yog_body::TravelFrame,
14 pub velocity: Option<yog_body::Vec3>,
15}