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

What a delta snapshot says of one entity. More...

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

Public Member Functions

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

Public Attributes

EntityChange change = EntityChange::Added
 How it differs from the baseline.
 
std::uint8_t fields = 0
 For EntityChange::Updated, the EntityField bits of the fields sent.
 
EntityRecord record
 Its id, and the fields sent; the others are 0.
 

Detailed Description

What a delta snapshot says of one entity.

Member Function Documentation

◆ operator==()

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

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ change

EntityChange rtype::EntityDelta::change = EntityChange::Added

How it differs from the baseline.

◆ fields

std::uint8_t rtype::EntityDelta::fields = 0

For EntityChange::Updated, the EntityField bits of the fields sent.

◆ record

EntityRecord rtype::EntityDelta::record

Its id, and the fields sent; the others are 0.


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