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

Owns entities and dispatches script simulation. More...

#include <Core/Core.h>
#include <entt.hpp>
#include <glm/glm.hpp>
#include <vector>
#include <memory>
#include <unordered_set>
#include <functional>

Go to the source code of this file.

Classes

class  FINALITY::Scene
 Owns entities and dispatches script simulation. More...
class  FINALITY::EmptyScene

Namespaces

namespace  FINALITY

Detailed Description

Owns entities and dispatches script simulation.

Scene owns the EnTT registry and supplies hierarchy cloning, destruction and world transforms. Script updates use a snapshot and defer structural mutations until callback dispatch completes. New attachments begin on the following update.

Usage
Call OnUpdate with elapsed seconds. FixedUpdate runs before Update; LateUpdate follows all Update calls. Use DestroyEntity rather than removing registry entries during callbacks.

Definition in file Scene.h.