Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
mnd::Component Class Referenceabstract

#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
 
GameObjectGetOwner ()
 

Static Public Member Functions

template<typename T >
static size_t StaticTypeId ()
 

Protected Attributes

GameObjectm_owner = nullptr
 

Friends

class GameObject
 

Detailed Description

Definition at line 38 of file Component.h.

Constructor & Destructor Documentation

◆ ~Component()

virtual mnd::Component::~Component ( )
virtualdefault

Member Function Documentation

◆ GetOwner()

GameObject * mnd::Component::GetOwner ( )

Definition at line 12 of file Component.cpp.

References m_owner.

Referenced by mnd::MeshComponent::Update(), and mnd::SkinnedMeshComponent::Update().

◆ GetTypeId()

virtual size_t mnd::Component::GetTypeId ( ) const
pure virtual

◆ Init()

void mnd::Component::Init ( )
virtual

Reimplemented in mnd::PhysicsComponent, and mnd::PlayerControllerComponent.

Definition at line 10 of file Component.cpp.

Referenced by mnd::GameObject::AddComponent().

◆ LoadProperties()

void mnd::Component::LoadProperties ( const nlohmann::json &  json)
virtual

◆ StaticTypeId()

template<typename T >
static size_t mnd::Component::StaticTypeId ( )
inlinestatic

Definition at line 50 of file Component.h.

◆ Update()

Friends And Related Symbol Documentation

◆ GameObject

friend class GameObject
friend

Definition at line 59 of file Component.h.

Member Data Documentation

◆ m_owner


The documentation for this class was generated from the following files: