Expand description
Represents a serialized input for a single player in a single frame. This struct holds a data
which represents the encoded input of a single player.
The associated frame is denoted with frame
. You do not need to create this struct, but the sessions will provide a Vec<GameInput>
for you during advance_frame()
.
Fields
frame: Frame
The frame to which this info belongs to. -1/NULL_FRAME
represents an invalid frame
size: usize
buffer: Vec<u8>
An input buffer that will hold input data
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GameInput
impl UnwindSafe for GameInput
Blanket Implementations
Mutably borrows from an owned value. Read more