Skip to content

EntropyCanvas::ExternalTransformRegistry

Registry mapping entity IDs to their external transform sources. More…

#include <ExternalTransformSource.h>

Name
~ExternalTransformRegistry() =default
voidunregisterSource(uint64_t entityId)
Unregister an external source for an entity.
voidregisterSource(uint64_t entityId, IExternalTransformSource * source)
Register an external source for an entity.
ExternalTransformRegistry &operator=(const ExternalTransformRegistry & ) =delete
boolhasSource(uint64_t entityId) const
Check if an entity has an external source registered.
IExternalTransformSource *getSource(uint64_t entityId) const
Get the external source for an entity.
voidclear()
Clear all registered sources.
ExternalTransformRegistry() =default
ExternalTransformRegistry(const ExternalTransformRegistry & ) =delete
class EntropyCanvas::ExternalTransformRegistry;

Registry mapping entity IDs to their external transform sources.

Thread-safe for concurrent read access. Write operations should only happen from the main thread during setup/teardown.

~ExternalTransformRegistry() =default
void unregisterSource(
uint64_t entityId
)

Unregister an external source for an entity.

Parameters:

  • entityId The entity ID to unregister
void registerSource(
uint64_t entityId,
IExternalTransformSource * source
)

Register an external source for an entity.

Parameters:

  • entityId The entity ID
  • source Pointer to the external source (must outlive registration)

The registry does NOT take ownership - caller must manage lifetime.

ExternalTransformRegistry & operator=(
const ExternalTransformRegistry &
) =delete
bool hasSource(
uint64_t entityId
) const

Check if an entity has an external source registered.

IExternalTransformSource * getSource(
uint64_t entityId
) const

Get the external source for an entity.

Parameters:

  • entityId The entity to query

Return: Pointer to the source, or nullptr if entity uses ECS authority

void clear()

Clear all registered sources.

ExternalTransformRegistry() =default
ExternalTransformRegistry(
const ExternalTransformRegistry &
) =delete

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