Skip to content

EntropyEngine::Networking::PropertyDefinition

EntropyEngine::Networking::PropertyDefinition

Section titled “EntropyEngine::Networking::PropertyDefinition”

Property definition within a component schema. More…

#include <ComponentSchema.h>

Name
booloperator==(const PropertyDefinition & other) const
Equality comparison for property definitions.
booloperator!=(const PropertyDefinition & other) const
Name
PropertyTypetype
Property type from PropertyTypes.h.
size_tsize
Size in bytes.
boolrequired
Whether this property must be present (default: true).
size_toffset
Byte offset within component struct.
std::stringname
Property name (e.g., “position”, “health”).
std::optional< PropertyValue >defaultValue
Optional default value.
struct EntropyEngine::Networking::PropertyDefinition;

Property definition within a component schema.

Describes a single property/field within a component type, including its name, type, memory layout offset, size, and metadata.

Metadata fields (required, defaultValue) support cross-application compatibility checking but are NOT included in structural or type hashes. This allows applications to add default values or change required status without breaking compatibility.

inline bool operator==(
const PropertyDefinition & other
) const

Equality comparison for property definitions.

Two definitions are equal if all fields match exactly, including metadata. Note: Structural hash only uses name/type/offset/size (not metadata).

inline bool operator!=(
const PropertyDefinition & other
) const
PropertyType type;

Property type from PropertyTypes.h.

size_t size;

Size in bytes.

bool required = true;

Whether this property must be present (default: true).

size_t offset;

Byte offset within component struct.

std::string name;

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

std::optional< PropertyValue > defaultValue = std::nullopt;

Optional default value.


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