Skip to content

EntropyEngine::Networking::NetworkSession::ComponentHandle

EntropyEngine::Networking::NetworkSession::ComponentHandle

Section titled “EntropyEngine::Networking::NetworkSession::ComponentHandle”

Component attachment on an entity, allows setting property values.

#include <NetworkSession.h>

Name
template <typename T >
ComponentHandle &
set(const std::string & propertyName, const T & value)
Set a property value on this component.
template <typename T >
NetworkSession::ComponentHandle &
set(const std::string & propertyName, const T & value)
EntityBuilder &done()
Return to entity for attaching more components.
ComponentHandle(EntityBuilder & entity, const ComponentSchema & schema)
template <typename T >
ComponentHandle & set(
const std::string & propertyName,
const T & value
)

Set a property value on this component.

Parameters:

  • propertyName Name of the property (must exist in schema)
  • value Property value (type must match schema)

Return: Reference to this handle for chaining

template <typename T >
NetworkSession::ComponentHandle & set(
const std::string & propertyName,
const T & value
)
inline EntityBuilder & done()

Return to entity for attaching more components.

ComponentHandle(
EntityBuilder & entity,
const ComponentSchema & schema
)

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