R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
EntityRenderer::RenderableEntity::Snapshot Struct Reference

A single state snapshot with timestamp for time-based interpolation. More...

#include <EntityRenderer.hpp>

Collaboration diagram for EntityRenderer::RenderableEntity::Snapshot:
Collaboration graph

Public Attributes

float x
 Position X.
 
float y
 Position Y.
 
float velocityX
 Velocity X (for extrapolation)
 
float velocityY
 Velocity Y (for extrapolation)
 
uint64_t timestamp
 Local timestamp when received (milliseconds)
 
uint32_t serverTick
 Server tick number.
 

Detailed Description

A single state snapshot with timestamp for time-based interpolation.

Definition at line 54 of file EntityRenderer.hpp.

Member Data Documentation

◆ serverTick

uint32_t EntityRenderer::RenderableEntity::Snapshot::serverTick

Server tick number.

Definition at line 60 of file EntityRenderer.hpp.

Referenced by EntityRenderer::updateEntity().

◆ timestamp

uint64_t EntityRenderer::RenderableEntity::Snapshot::timestamp

Local timestamp when received (milliseconds)

Definition at line 59 of file EntityRenderer.hpp.

Referenced by EntityRenderer::updateEntity().

◆ velocityX

float EntityRenderer::RenderableEntity::Snapshot::velocityX

Velocity X (for extrapolation)

Definition at line 57 of file EntityRenderer.hpp.

Referenced by EntityRenderer::updateEntity().

◆ velocityY

float EntityRenderer::RenderableEntity::Snapshot::velocityY

Velocity Y (for extrapolation)

Definition at line 58 of file EntityRenderer.hpp.

Referenced by EntityRenderer::updateEntity().

◆ x

float EntityRenderer::RenderableEntity::Snapshot::x

Position X.

Definition at line 55 of file EntityRenderer.hpp.

Referenced by EntityRenderer::updateEntity().

◆ y

float EntityRenderer::RenderableEntity::Snapshot::y

Position Y.

Definition at line 56 of file EntityRenderer.hpp.

Referenced by EntityRenderer::updateEntity().


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