Finality Engine
Loading...
Searching...
No Matches
Entity.h File Reference

Provides a scene-bound handle for component and hierarchy operations. More...

#include <Core/Core.h>
#include "Scene.h"
#include <entt.hpp>
#include <Utils/UUID.h>
#include "Entity.inl"

Go to the source code of this file.

Classes

class  FINALITY::Entity
 Provides a scene-bound handle for component and hierarchy operations. More...
struct  FINALITY::RelationshipComponent
 Intrusive hierarchy links using EnTT handles; entt::null denotes a missing link. More...

Namespaces

namespace  FINALITY

Detailed Description

Provides a scene-bound handle for component and hierarchy operations.

Entity wraps an EnTT handle and a non-owning Scene pointer. A weak lifetime token prevents IsValid from accepting handles whose scene has expired. Copying the wrapper does not clone the underlying entity.

Usage
Check IsValid before using a stored handle. Use Scene::DuplicateEntity to copy an entity hierarchy; use SetParent to change hierarchy relationships.

Definition in file Entity.h.