Struct ggrs::GameInput [−][src]
Expand description
Represents a serialized input for a single player in a single frame. This struct holds a buffer
where the first size
bytes represent 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: [u8; 32]
An input buffer that will hold input data
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GameInput
impl UnwindSafe for GameInput
Blanket Implementations
Mutably borrows from an owned value. Read more