R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
rtype::InputRecord Struct Reference

One input of the player: the actions held at one tick of the client. More...

#include </__w/project-rtype/project-rtype/protocol/include/rtype/input.hpp>

Public Member Functions

bool operator== (const InputRecord &) const =default
 Field-by-field equality.
 

Public Attributes

std::uint16_t sequence = 0
 Number of the input: 0 for the first input of a session, then one more for each, from 65535 back to 0. Compared with aegis2d::net::sequence_greater_than().
 
std::uint8_t actions = 0
 Actions held, one aegis2d::ecs::Action bit each.
 

Detailed Description

One input of the player: the actions held at one tick of the client.

Member Function Documentation

◆ operator==()

bool rtype::InputRecord::operator== ( const InputRecord &  ) const
default

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ actions

std::uint8_t rtype::InputRecord::actions = 0

Actions held, one aegis2d::ecs::Action bit each.

◆ sequence

std::uint16_t rtype::InputRecord::sequence = 0

Number of the input: 0 for the first input of a session, then one more for each, from 65535 back to 0. Compared with aegis2d::net::sequence_greater_than().


The documentation for this struct was generated from the following file: