|
Monad Engine da02fba2
> Undercity Codex_
|
#include <Component.h>
Inheritance diagram for eng::Component:
Collaboration diagram for eng::Component:Public Member Functions | |
| virtual | ~Component ()=default |
| virtual void | LoadProperties (const nlohmann::json &json) |
| virtual void | Update (float deltaTime)=0 |
| virtual void | Init () |
| virtual size_t | GetTypeId () const =0 |
| GameObject * | GetOwner () |
Static Public Member Functions | |
| template<typename T > | |
| static size_t | StaticTypeId () |
Protected Attributes | |
| GameObject * | m_owner = nullptr |
Friends | |
| class | GameObject |
Definition at line 14 of file Component.h.
|
virtualdefault |
| GameObject * eng::Component::GetOwner | ( | ) |
Definition at line 15 of file Component.cpp.
References m_owner.
Referenced by eng::MeshComponent::Update(), and eng::SpriteComponent::Update().
|
pure virtual |
|
virtual |
Reimplemented in eng::PhysicsComponent, and eng::PlayerControllerComponent.
Definition at line 11 of file Component.cpp.
Referenced by eng::GameObject::AddComponent().
|
virtual |
Reimplemented in eng::AudioComponent, eng::LightComponent, eng::MeshComponent, eng::PhysicsComponent, and eng::SpriteComponent.
Definition at line 7 of file Component.cpp.
|
inlinestatic |
Definition at line 26 of file Component.h.
|
pure virtual |
|
friend |
Definition at line 35 of file Component.h.
|
protected |
Definition at line 33 of file Component.h.
Referenced by eng::GameObject::AddComponent(), GetOwner(), eng::CameraComponent::GetViewMatrix(), eng::PhysicsComponent::Init(), eng::PlayerControllerComponent::Init(), eng::AudioComponent::Update(), eng::AudioListenerComponent::Update(), eng::PhysicsComponent::Update(), and eng::PlayerControllerComponent::Update().