|
R-Type
Networked shoot'em up built on Aegis2D
|
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. | |
One input of the player: the actions held at one tick of the client.
|
default |
Field-by-field equality.
true if every field is equal. | std::uint8_t rtype::InputRecord::actions = 0 |
Actions held, one aegis2d::ecs::Action bit each.
| 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().