MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
space::NetworkProjectile Struct Reference

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.

Detailed Description

Serialized gameplay state for one projectile.

Definition at line 33 of file multiplayer.hpp.

Member Data Documentation

◆ active

std::uint8_t space::NetworkProjectile::active = 0

Nonzero when the projectile is active.

Definition at line 38 of file multiplayer.hpp.

◆ id

std::uint32_t space::NetworkProjectile::id = 0

Projectile identifier assigned by its owner.

Definition at line 34 of file multiplayer.hpp.

◆ lifetime

float space::NetworkProjectile::lifetime = 0.0f

Remaining lifetime in seconds.

Definition at line 37 of file multiplayer.hpp.

◆ position

std::array<float, 3> space::NetworkProjectile::position {}

World-space position.

Definition at line 35 of file multiplayer.hpp.

35{}; ///< World-space position.

◆ velocity

std::array<float, 3> space::NetworkProjectile::velocity {}

World-space velocity.

Definition at line 36 of file multiplayer.hpp.

36{}; ///< World-space velocity.

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