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

What the client knows of a player of the game. More...

#include </__w/project-rtype/project-rtype/client/network/include/rtype/client_world.hpp>

Public Attributes

std::string name
 Name from PlayerJoined, empty until it arrives.
 
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, or nothing before the first: the most recent of the snapshots received, by aegis2d::net::sequence_greater_than().
 

Detailed Description

What the client knows of a player of the game.

Member Data Documentation

◆ input

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

Sequence of the last Input of the player the server applied, or nothing before the first: the most recent of the snapshots received, by aegis2d::net::sequence_greater_than().

◆ lives

std::uint8_t rtype::RemotePlayer::lives = 0

Lives left.

◆ name

std::string rtype::RemotePlayer::name

Name from PlayerJoined, empty until it arrives.

◆ score

std::uint32_t rtype::RemotePlayer::score = 0

Score.

◆ ship

std::uint32_t rtype::RemotePlayer::ship = no_entity

Network id of its ship, or no_entity once out of lives.


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