EntropyEngine::Networking::PropertyHash
EntropyEngine::Networking::PropertyHash
Section titled “EntropyEngine::Networking::PropertyHash”128-bit property hash for per-instance property identification More…
#include <PropertyHash.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| bool | operator==(const PropertyHash & other) const |
| bool | operator<(const PropertyHash & other) const |
| bool | operator!=(const PropertyHash & other) const |
| bool | isNull() const Check if hash is null/uninitialized. |
| PropertyHash() =default | |
| PropertyHash(uint64_t h, uint64_t l) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| uint64_t | low Low 64 bits of hash. |
| uint64_t | high High 64 bits of hash. |
Detailed Description
Section titled “Detailed Description”struct EntropyEngine::Networking::PropertyHash;128-bit property hash for per-instance property identification
Uniquely identifies a property on a specific entity instance. Computed using SHA-256(entityId || componentType || propertyName) truncated to 128 bits.
The hash is computed ONCE on property creation and provides per-instance uniqueness at ecosystem scale. Each property on each entity has a unique hash.
Example: Entity 42’s Transform.position has a different hash than Entity 99’s Transform.position.
Public Functions Documentation
Section titled “Public Functions Documentation”function operator==
Section titled “function operator==”inline bool operator==( const PropertyHash & other) constfunction operator<
Section titled “function operator<”inline bool operator<( const PropertyHash & other) constfunction operator!=
Section titled “function operator!=”inline bool operator!=( const PropertyHash & other) constfunction isNull
Section titled “function isNull”inline bool isNull() constCheck if hash is null/uninitialized.
Return: true if both components are zero
function PropertyHash
Section titled “function PropertyHash”PropertyHash() =defaultfunction PropertyHash
Section titled “function PropertyHash”inline PropertyHash( uint64_t h, uint64_t l)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable low
Section titled “variable low”uint64_t low {0};Low 64 bits of hash.
variable high
Section titled “variable high”uint64_t high {0};High 64 bits of hash.
Updated on 2026-01-26 at 17:14:35 -0500