EntropyEngine::Networking::PropertyMetadata
EntropyEngine::Networking::PropertyMetadata
Section titled “EntropyEngine::Networking::PropertyMetadata”Metadata for a registered property instance. More…
#include <PropertyRegistry.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| bool | matches(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) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| 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. |
Detailed Description
Section titled “Detailed Description”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.
Public Functions Documentation
Section titled “Public Functions Documentation”function matches
Section titled “function matches”inline bool matches( const PropertyMetadata & other) constCheck if metadata matches another instance (for idempotent registration).
Compares all fields except registeredAt.
function PropertyMetadata
Section titled “function PropertyMetadata”PropertyMetadata() =defaultfunction PropertyMetadata
Section titled “function PropertyMetadata”inline PropertyMetadata( PropertyHash h, uint64_t entity, ComponentTypeHash component, std::string prop, PropertyType t, uint64_t timestamp)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable type
Section titled “variable type”PropertyType type;Property type (e.g., Vec3, Float32).
variable registeredAt
Section titled “variable registeredAt”uint64_t registeredAt;Timestamp when registered (microseconds since epoch).
variable propertyName
Section titled “variable propertyName”std::string propertyName;Property name (e.g., “position”, “health”).
variable hash
Section titled “variable hash”PropertyHash hash;Unique 128-bit identifier (computed once).
variable entityId
Section titled “variable entityId”uint64_t entityId;Owner entity ID.
variable componentType
Section titled “variable componentType”ComponentTypeHash componentType;Component type hash from ComponentSchema.
Updated on 2026-01-26 at 17:14:35 -0500