|
R-Type
Networked shoot'em up built on Aegis2D
|
What a snapshot says of a player. More...
#include </__w/project-rtype/project-rtype/protocol/include/rtype/snapshot.hpp>
Public Member Functions | |
| bool | operator== (const PlayerRecord &) const =default |
| Field-by-field equality. | |
Public Attributes | |
| std::uint8_t | player = 0 |
| Player number, 0 to 3. | |
| std::uint32_t | ship = no_entity |
| Network id of its ship, or no_entity once out of lives. | |
| std::uint8_t | lives = 0 |
| Lives left. | |
| std::uint32_t | score = 0 |
| Score. | |
| std::optional< std::uint16_t > | input |
Sequence of the last Input of the player the server applied (InputRecord), or nothing before the first. | |
What a snapshot says of a player.
|
default |
Field-by-field equality.
true if every field is equal. | std::optional<std::uint16_t> rtype::PlayerRecord::input |
Sequence of the last Input of the player the server applied (InputRecord), or nothing before the first.
| std::uint8_t rtype::PlayerRecord::lives = 0 |
Lives left.
| std::uint8_t rtype::PlayerRecord::player = 0 |
Player number, 0 to 3.
| std::uint32_t rtype::PlayerRecord::score = 0 |
Score.
| std::uint32_t rtype::PlayerRecord::ship = no_entity |
Network id of its ship, or no_entity once out of lives.