|
R-Type
Networked shoot'em up built on Aegis2D
|
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. | |
One payload of a snapshot encoded against a baseline.
|
default |
Field-by-field equality.
true if every field is equal. | std::optional<std::uint32_t> rtype::DeltaSnapshot::baseline |
Tick of the baseline, or nothing for a full snapshot.
| std::vector<EntityDelta> rtype::DeltaSnapshot::entities |
The entities added, changed or removed since the baseline.
| std::vector<PlayerRecord> rtype::DeltaSnapshot::players |
Every player of the game, as in a full snapshot.
| std::uint32_t rtype::DeltaSnapshot::tick = 0 |
Server tick of the state.