Skip to content

EntropyEngine::Networking::PropertyMetadata

EntropyEngine::Networking::PropertyMetadata

Section titled “EntropyEngine::Networking::PropertyMetadata”

Metadata for a registered property instance. More…

#include <PropertyRegistry.h>

Name
boolmatches(const PropertyMetadata & other) const
Check if metadata matches another instance (for idempotent registration).
PropertyMetadata() =default
PropertyMetadata(PropertyHash h, uint64_t entity, ComponentTypeHash component, std::string prop, PropertyType t, uint64_t timestamp)
Name
PropertyTypetype
Property type (e.g., Vec3, Float32).
uint64_tregisteredAt
Timestamp when registered (microseconds since epoch).
std::stringpropertyName
Property name (e.g., “position”, “health”).
PropertyHashhash
Unique 128-bit identifier (computed once).
uint64_tentityId
Owner entity ID.
ComponentTypeHashcomponentType
Component type hash from ComponentSchema.
struct EntropyEngine::Networking::PropertyMetadata;

Metadata for a registered property instance.

Each property instance on each entity gets its own unique hash and metadata. The hash is computed once and stored - never recomputed.

inline bool matches(
const PropertyMetadata & other
) const

Check if metadata matches another instance (for idempotent registration).

Compares all fields except registeredAt.

PropertyMetadata() =default
inline PropertyMetadata(
PropertyHash h,
uint64_t entity,
ComponentTypeHash component,
std::string prop,
PropertyType t,
uint64_t timestamp
)
PropertyType type;

Property type (e.g., Vec3, Float32).

uint64_t registeredAt;

Timestamp when registered (microseconds since epoch).

std::string propertyName;

Property name (e.g., “position”, “health”).

PropertyHash hash;

Unique 128-bit identifier (computed once).

uint64_t entityId;

Owner entity ID.

ComponentTypeHash componentType;

Component type hash from ComponentSchema.


Updated on 2026-01-26 at 17:14:35 -0500