r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
gme::EntityMetadata Struct Reference

Metadata structure for tracking entity lifecycle and properties. More...

#include <EntityManager.hpp>

+ Collaboration diagram for gme::EntityMetadata:

Public Attributes

ecs::Entity entity
 ECS entity handle.
 
ServerEntityType type
 Entity type classification.
 
std::uint32_t networkId
 Unique ID used in network synchronization packets.
 
bool isActive
 Whether entity is currently active.
 
float lifetime
 Maximum lifetime in seconds (-1 for infinite)
 
float currentLife
 Elapsed lifetime counter in seconds.
 
std::uint32_t ownerId
 Owner entity ID (for projectiles, the spawner)
 

Detailed Description

Metadata structure for tracking entity lifecycle and properties.

Stores additional information about entities beyond ECS components, including network synchronization data, lifetime management, and ownership.

Definition at line 51 of file EntityManager.hpp.

Member Data Documentation

◆ currentLife

float gme::EntityMetadata::currentLife

Elapsed lifetime counter in seconds.

Definition at line 58 of file EntityManager.hpp.

Referenced by gme::EntityManager::registerEntity().

◆ entity

ecs::Entity gme::EntityMetadata::entity

ECS entity handle.

Definition at line 53 of file EntityManager.hpp.

Referenced by gme::EntityManager::registerEntity().

◆ isActive

bool gme::EntityMetadata::isActive

Whether entity is currently active.

Definition at line 56 of file EntityManager.hpp.

Referenced by gme::EntityManager::registerEntity().

◆ lifetime

float gme::EntityMetadata::lifetime

Maximum lifetime in seconds (-1 for infinite)

Definition at line 57 of file EntityManager.hpp.

Referenced by gme::EntityManager::registerEntity().

◆ networkId

std::uint32_t gme::EntityMetadata::networkId

Unique ID used in network synchronization packets.

Definition at line 55 of file EntityManager.hpp.

Referenced by gme::EntityManager::registerEntity().

◆ ownerId

std::uint32_t gme::EntityMetadata::ownerId

Owner entity ID (for projectiles, the spawner)

Definition at line 59 of file EntityManager.hpp.

Referenced by gme::CollisionSystem::handlePlayerProjectileEnemyCollision(), and gme::EntityManager::registerEntity().

◆ type

ServerEntityType gme::EntityMetadata::type

Entity type classification.

Definition at line 54 of file EntityManager.hpp.

Referenced by gme::EntityManager::registerEntity().


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