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

The state of the world at one tick. More...

#include </__w/project-rtype/project-rtype/protocol/include/rtype/snapshot.hpp>

Public Member Functions

bool operator== (const Snapshot &) const =default
 Field-by-field equality.
 

Public Attributes

std::uint32_t tick = 0
 Server tick of the state.
 
std::vector< PlayerRecord > players
 Every player of the game.
 
std::vector< EntityRecord > entities
 Every replicated entity of the world.
 

Detailed Description

The state of the world at one tick.

Member Function Documentation

◆ operator==()

bool rtype::Snapshot::operator== ( const Snapshot &  ) const
default

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ entities

std::vector<EntityRecord> rtype::Snapshot::entities

Every replicated entity of the world.

◆ players

std::vector<PlayerRecord> rtype::Snapshot::players

Every player of the game.

◆ tick

std::uint32_t rtype::Snapshot::tick = 0

Server tick of the state.


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