|
Monad Engine da02fba2
> Undercity Codex_
|
Scene, GameObject, and the Component base class. More...
Files | |
| file | Component.h |
| Abstract base for all GameObject components and the COMPONENT macro. | |
| file | GameObject.h |
| Scene node with a 3D transform and an attachable component list. | |
| file | Scene.h |
| Owns the game object tree and provides per-frame update + light collection. | |
Scene, GameObject, and the Component base class.
Object/component model and the active world container.
Objects in the world are GameObjects owned by a Scene. Behaviour is added via Component subclasses (see Components). The engine holds one active Scene and calls Scene::Update() every frame.
Monad uses a flat scene of mnd::GameObject nodes; behaviour is layered on by attaching mnd::Component subclasses through AddComponent<T>(). The active mnd::Scene owns the object list, holds the main camera and lights, and is queried by the renderer once per frame.