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

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.
 

Detailed Description

What the game says of a player, for the snapshots.

Member Data Documentation

◆ input

std::optional<std::uint16_t> rtype::PlayerState::input

Sequence of the last input applied to its ship, or nothing before the first.

◆ lives

std::uint32_t rtype::PlayerState::lives = 0

Lives left, 0 once out.

◆ score

std::uint32_t rtype::PlayerState::score = 0

Score; once out, the last score of its ship.

◆ ship

std::optional<aegis2d::ecs::Entity> rtype::PlayerState::ship

Its ship, or std::nullopt once out of lives.


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