class ecs::IECSEntityOwner

Interface for objects that own an ECS entity.

Public

Methods

~IECSEntityOwner

virtual ~IECSEntityOwner() noexcept = default

GetECSRegistry

virtual Registry *GetECSRegistry() const = 0

Returns the ECS registry this entity belongs to, or null if not part of a registry.

GetECSEntity

virtual Entity GetECSEntity() const = 0

Returns the ECS entity handle.

CreateECSEntity

virtual void CreateECSEntity(Registry *registry) = 0

Creates an ECS entity in the provided registry and adds default fragments.

Asserts if entity already exists.