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

One payload of a snapshot encoded against a baseline. More...

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

Public Member Functions

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

Public Attributes

std::uint32_t tick = 0
 Server tick of the state.
 
std::optional< std::uint32_t > baseline
 Tick of the baseline, or nothing for a full snapshot.
 
std::vector< PlayerRecord > players
 Every player of the game, as in a full snapshot.
 
std::vector< EntityDelta > entities
 The entities added, changed or removed since the baseline.
 

Detailed Description

One payload of a snapshot encoded against a baseline.

Member Function Documentation

◆ operator==()

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

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ baseline

std::optional<std::uint32_t> rtype::DeltaSnapshot::baseline

Tick of the baseline, or nothing for a full snapshot.

◆ entities

std::vector<EntityDelta> rtype::DeltaSnapshot::entities

The entities added, changed or removed since the baseline.

◆ players

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

Every player of the game, as in a full snapshot.

◆ tick

std::uint32_t rtype::DeltaSnapshot::tick = 0

Server tick of the state.


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