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) | |
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.
| float gme::EntityMetadata::currentLife |
Elapsed lifetime counter in seconds.
Definition at line 58 of file EntityManager.hpp.
Referenced by gme::EntityManager::registerEntity().
| ecs::Entity gme::EntityMetadata::entity |
ECS entity handle.
Definition at line 53 of file EntityManager.hpp.
Referenced by gme::EntityManager::registerEntity().
| bool gme::EntityMetadata::isActive |
Whether entity is currently active.
Definition at line 56 of file EntityManager.hpp.
Referenced by gme::EntityManager::registerEntity().
| float gme::EntityMetadata::lifetime |
Maximum lifetime in seconds (-1 for infinite)
Definition at line 57 of file EntityManager.hpp.
Referenced by gme::EntityManager::registerEntity().
| 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().
| 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().
| ServerEntityType gme::EntityMetadata::type |
Entity type classification.
Definition at line 54 of file EntityManager.hpp.
Referenced by gme::EntityManager::registerEntity().