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

What a snapshot says of an entity. More...

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

Public Member Functions

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

Public Attributes

std::uint32_t id = 0
 Network id.
 
std::uint8_t kind = 0
 Kind, an EntityKind value (others are reserved).
 
float x = 0.0F
 Position of its center, in logical pixels.
 
float y = 0.0F
 Position of its center, in logical pixels.
 
float vx = 0.0F
 Velocity, in logical pixels per second.
 
float vy = 0.0F
 Velocity, in logical pixels per second.
 
std::uint8_t frame = 0
 Frame of its sprite sheet to show.
 

Detailed Description

What a snapshot says of an entity.

Member Function Documentation

◆ operator==()

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

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ frame

std::uint8_t rtype::EntityRecord::frame = 0

Frame of its sprite sheet to show.

◆ id

std::uint32_t rtype::EntityRecord::id = 0

Network id.

◆ kind

std::uint8_t rtype::EntityRecord::kind = 0

Kind, an EntityKind value (others are reserved).

◆ vx

float rtype::EntityRecord::vx = 0.0F

Velocity, in logical pixels per second.

◆ vy

float rtype::EntityRecord::vy = 0.0F

Velocity, in logical pixels per second.

◆ x

float rtype::EntityRecord::x = 0.0F

Position of its center, in logical pixels.

◆ y

float rtype::EntityRecord::y = 0.0F

Position of its center, in logical pixels.


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