lightyear 0.3.0

Server-client networking library for the Bevy game engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*!
Handles dealing with inputs (keyboard presses, mouse clicks) sent from a player (client) to server
*/

/// Defines an [`InputBuffer`](input_buffer::InputBuffer) buffer to store the inputs of a player for each tick
pub mod input_buffer;

use crate::protocol::BitSerializable;
use std::fmt::Debug;

// TODO: should we request that a user input is a message?
pub trait UserInput:
    BitSerializable + Clone + Eq + PartialEq + Send + Sync + Debug + 'static
{
}

impl UserInput for () {}