R-Type 0.1
Loading...
Searching...
No Matches
rtype::protocol::InputPayload Struct Reference

Payload of an Input message, 9 bytes, sent by a client every frame with the actions currently held. More...

#include <Protocol/InputPayload.hpp>

Public Attributes

be32 inputSequence
 Increases for each Input sent.
 
be32 clientTick
 Client frame counter.
 
InputAction actions = InputAction::NoneAction
 Actions currently held.
 

Detailed Description

Payload of an Input message, 9 bytes, sent by a client every frame with the actions currently held.

Offset Size Field Description
0 4 inputSequence Increases by one for each Input sent.
4 4 clientTick Client frame counter.
8 1 actions InputAction bit flags.