Serialized gameplay state for one projectile. More...
#include <examples/asteroids-net/multiplayer.hpp>
Public Attributes | |
| std::uint8_t | active = 0 |
| Nonzero when the projectile is active. | |
| std::uint32_t | id = 0 |
| Projectile identifier assigned by its owner. | |
| float | lifetime = 0.0f |
| Remaining lifetime in seconds. | |
| std::array< float, 3 > | position {} |
| World-space position. | |
| std::array< float, 3 > | velocity {} |
| World-space velocity. | |
Serialized gameplay state for one projectile.
Definition at line 33 of file multiplayer.hpp.
| std::uint8_t space::NetworkProjectile::active = 0 |
Nonzero when the projectile is active.
Definition at line 38 of file multiplayer.hpp.
| std::uint32_t space::NetworkProjectile::id = 0 |
Projectile identifier assigned by its owner.
Definition at line 34 of file multiplayer.hpp.
| float space::NetworkProjectile::lifetime = 0.0f |
Remaining lifetime in seconds.
Definition at line 37 of file multiplayer.hpp.
| std::array<float, 3> space::NetworkProjectile::position {} |
World-space position.
Definition at line 35 of file multiplayer.hpp.
| std::array<float, 3> space::NetworkProjectile::velocity {} |
World-space velocity.
Definition at line 36 of file multiplayer.hpp.