Skip to content

EntropyEngine::Networking::NetworkSession::EntityBuilder

EntropyEngine::Networking::NetworkSession::EntityBuilder

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

Builder for creating entities with components in ECS style.

#include <NetworkSession.h>

Name
Result< void >sync()
Send entity creation and all pending property updates.
uint64_tid() const
Get the entity ID.
ComponentHandleattach(const ComponentSchema & schema)
Attach a component schema to this entity.
Name
classNetworkSession
classComponentHandle
Result< void > sync()

Send entity creation and all pending property updates.

Return: Result indicating success/failure

inline uint64_t id() const

Get the entity ID.

ComponentHandle attach(
const ComponentSchema & schema
)

Attach a component schema to this entity.

Parameters:

  • schema Component schema to attach

Return: ComponentHandle for setting property values

friend class NetworkSession(
NetworkSession
);
friend class ComponentHandle(
ComponentHandle
);

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