ConstructBase class

Derived classes

template<typename Derived>
class Construct
template<typename Derived>
class Construct
template<typename Derived>
class Construct

Constructors, destructors, conversion operators

ConstructBase() protected defaulted
~ConstructBase() protected defaulted

Public functions

void RegisterView(ConstructViewRef ref)
void DeregisterView(void* viewPtr)
void CollectViewHandles(std::vector<EntityHandle>& out) const
auto GetWorld() const -> WorldBase*
auto GetRegistry() const -> Registry*
auto IsInitialized() const -> bool
auto GetConstructID() const -> uint32_t
void SetConstructID(uint32_t id)
auto GetOwnerSoul() const -> Soul*
void SetOwnerSoul(Soul* soul)

Protected functions

void HydrateAllViews()
void UnbindAllViewContacts(void* self)
void DeregisterTicks(void* self)
Deregisters every scalar tick batch entry for self (the Derived* used at registration).

Protected variables

WorldBase* OwnerWorld
Soul* OwnerSoul
uint32_t ConstructID
bool bInitialized
std::vector<ConstructViewRef> Views

Function documentation

void ConstructBase::CollectViewHandles(std::vector<EntityHandle>& out) const

Collect the ECS EntityHandle for each registered View. Used by ReplicationSystem to build the ConstructSpawnPayload.

void ConstructBase::UnbindAllViewContacts(void* self) protected

Binds or unbinds contact callbacks for every registered View's entity. self is the Derived* the callbacks were registered with (may differ from this under multiple inheritance).