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>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| Result< void > | sync() Send entity creation and all pending property updates. |
| uint64_t | id() const Get the entity ID. |
| ComponentHandle | attach(const ComponentSchema & schema) Attach a component schema to this entity. |
Friends
Section titled “Friends”| Name | |
|---|---|
| class | NetworkSession |
| class | ComponentHandle |
Public Functions Documentation
Section titled “Public Functions Documentation”function sync
Section titled “function sync”Result< void > sync()Send entity creation and all pending property updates.
Return: Result indicating success/failure
function id
Section titled “function id”inline uint64_t id() constGet the entity ID.
function attach
Section titled “function attach”ComponentHandle attach( const ComponentSchema & schema)Attach a component schema to this entity.
Parameters:
- schema Component schema to attach
Return: ComponentHandle for setting property values
Friends
Section titled “Friends”friend NetworkSession
Section titled “friend NetworkSession”friend class NetworkSession( NetworkSession);friend ComponentHandle
Section titled “friend ComponentHandle”friend class ComponentHandle( ComponentHandle);Updated on 2026-01-26 at 17:14:35 -0500