|
R-Type
Networked shoot'em up built on Aegis2D
|
What the game says of a player, for the snapshots. More...
#include </__w/project-rtype/project-rtype/server/include/rtype/game_instance.hpp>
Public Attributes | |
| std::optional< aegis2d::ecs::Entity > | ship |
Its ship, or std::nullopt once out of lives. | |
| std::uint32_t | lives = 0 |
| Lives left, 0 once out. | |
| std::uint32_t | score = 0 |
| Score; once out, the last score of its ship. | |
| std::optional< std::uint16_t > | input |
| Sequence of the last input applied to its ship, or nothing before the first. | |
What the game says of a player, for the snapshots.
| std::optional<std::uint16_t> rtype::PlayerState::input |
Sequence of the last input applied to its ship, or nothing before the first.
| std::uint32_t rtype::PlayerState::lives = 0 |
Lives left, 0 once out.
| std::uint32_t rtype::PlayerState::score = 0 |
Score; once out, the last score of its ship.
| std::optional<aegis2d::ecs::Entity> rtype::PlayerState::ship |
Its ship, or std::nullopt once out of lives.