|
Monad Engine da02fba2
> Undercity Codex_
|
#include <Component.h>
Inheritance diagram for mnd::Component:
Collaboration diagram for mnd::Component:Public Member Functions | |
| virtual | ~Component ()=default |
| virtual void | LoadProperties (const nlohmann::json &json) |
| virtual void | Update (f32 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 38 of file Component.h.
|
virtualdefault |
| GameObject * mnd::Component::GetOwner | ( | ) |
Definition at line 12 of file Component.cpp.
References m_owner.
Referenced by mnd::MeshComponent::Update(), and mnd::SkinnedMeshComponent::Update().
|
pure virtual |
|
virtual |
Reimplemented in mnd::PhysicsComponent, and mnd::PlayerControllerComponent.
Definition at line 10 of file Component.cpp.
Referenced by mnd::GameObject::AddComponent().
|
virtual |
Reimplemented in mnd::AudioComponent, mnd::HealthComponent, mnd::LightComponent, mnd::MeshComponent, mnd::ParticleEmitterComponent, and mnd::PhysicsComponent.
Definition at line 8 of file Component.cpp.
|
inlinestatic |
Definition at line 50 of file Component.h.
|
pure virtual |
|
friend |
Definition at line 59 of file Component.h.
|
protected |
Definition at line 57 of file Component.h.
Referenced by mnd::GameObject::AddComponent(), mnd::HealthComponent::ApplyDamage(), GetOwner(), mnd::CameraComponent::GetViewMatrix(), mnd::PhysicsComponent::Init(), mnd::PlayerControllerComponent::Init(), mnd::PlayerControllerComponent::Update(), mnd::AudioComponent::Update(), mnd::AudioListenerComponent::Update(), and mnd::PhysicsComponent::Update().