Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
Component.cpp
Go to the documentation of this file.
1#include "scene/Component.h"
2
3namespace mnd
4{
5
6size_t Component::nextId = 1;
7
8void Component::LoadProperties(const nlohmann::json &json) {}
9
11
16
18{
19 static ComponentFactory instance;
20 return instance;
21}
22
23} // namespace mnd
static ComponentFactory & GetInstance()
Definition Component.cpp:17
virtual void Init()
Definition Component.cpp:10
GameObject * GetOwner()
Definition Component.cpp:12
GameObject * m_owner
Definition Component.h:57
virtual void LoadProperties(const nlohmann::json &json)
Definition Component.cpp:8
Node in the scene graph: a named transform that owns components and children.
Definition GameObject.h:91