|
R-Type
Networked shoot'em up built on Aegis2D
|
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. | |
What a snapshot says of an entity.
|
default |
Field-by-field equality.
true if every field is equal. | std::uint8_t rtype::EntityRecord::frame = 0 |
Frame of its sprite sheet to show.
| std::uint32_t rtype::EntityRecord::id = 0 |
Network id.
| std::uint8_t rtype::EntityRecord::kind = 0 |
Kind, an EntityKind value (others are reserved).
| float rtype::EntityRecord::vx = 0.0F |
Velocity, in logical pixels per second.
| float rtype::EntityRecord::vy = 0.0F |
Velocity, in logical pixels per second.
| float rtype::EntityRecord::x = 0.0F |
Position of its center, in logical pixels.
| float rtype::EntityRecord::y = 0.0F |
Position of its center, in logical pixels.