Serialized gameplay state for one asteroid. More...
#include <examples/asteroids-net/multiplayer.hpp>
Public Attributes | |
| std::uint8_t | active = 0 |
| Nonzero when the asteroid is active. | |
| std::array< float, 3 > | position {} |
| World-space position. | |
| float | radius = 0.0f |
| Collision radius. | |
| std::array< float, 3 > | rotation {} |
| Euler rotation in degrees. | |
| std::uint8_t | slot = 0 |
| Source asteroid slot. | |
Serialized gameplay state for one asteroid.
Definition at line 45 of file multiplayer.hpp.
| std::uint8_t space::NetworkAsteroid::active = 0 |
Nonzero when the asteroid is active.
Definition at line 50 of file multiplayer.hpp.
| std::array<float, 3> space::NetworkAsteroid::position {} |
World-space position.
Definition at line 46 of file multiplayer.hpp.
| float space::NetworkAsteroid::radius = 0.0f |
Collision radius.
Definition at line 48 of file multiplayer.hpp.
| std::array<float, 3> space::NetworkAsteroid::rotation {} |
Euler rotation in degrees.
Definition at line 47 of file multiplayer.hpp.
| std::uint8_t space::NetworkAsteroid::slot = 0 |
Source asteroid slot.
Definition at line 49 of file multiplayer.hpp.