R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
world_snapshot.hpp File Reference

The state of the server's game, as the snapshots of RFC section 4.3 carry it. More...

#include <rtype/snapshot.hpp>
#include <rtype/tuning.hpp>
#include <cstdint>
#include <optional>

Go to the source code of this file.

Namespaces

namespace  rtype
 R-Type game code, built on the Aegis2D engine.
 

Functions

std::optional< EntityKind > rtype::kind_of_layer (std::uint32_t layer) noexcept
 Kind of the entities of a collision layer, for snapshots and events.
 
constexpr bool rtype::snapshot_due (std::uint64_t tick) noexcept
 Tells whether a snapshot is due after a tick.
 
Snapshot rtype::take_snapshot (GameInstance &instance)
 Takes the state of the game, on the simulation thread.
 

Detailed Description

The state of the server's game, as the snapshots of RFC section 4.3 carry it.