Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
eng::LightComponent Class Referenceabstract

#include <LightComponent.h>

+ Inheritance diagram for eng::LightComponent:
+ Collaboration diagram for eng::LightComponent:

Public Member Functions

void LoadProperties (const nlohmann::json &json) override
 
void Update (float deltaTime) override
 
void SetColor (const glm::vec3 &color)
 
const glm::vec3 & GetColor () const
 
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
 

Detailed Description

Definition at line 9 of file LightComponent.h.

Member Function Documentation

◆ GetColor()

const glm::vec3 & eng::LightComponent::GetColor ( ) const

Definition at line 28 of file LightComponent.cpp.

◆ GetOwner()

GameObject * eng::Component::GetOwner ( )
inherited

Definition at line 15 of file Component.cpp.

References eng::Component::m_owner.

Referenced by eng::MeshComponent::Update(), and eng::SpriteComponent::Update().

◆ GetTypeId()

virtual size_t eng::Component::GetTypeId ( ) const
pure virtualinherited

◆ Init()

void eng::Component::Init ( )
virtualinherited

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

Definition at line 11 of file Component.cpp.

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

◆ LoadProperties()

void eng::LightComponent::LoadProperties ( const nlohmann::json &  json)
overridevirtual

Reimplemented from eng::Component.

Definition at line 5 of file LightComponent.cpp.

References SetColor().

◆ SetColor()

void eng::LightComponent::SetColor ( const glm::vec3 &  color)

Definition at line 23 of file LightComponent.cpp.

Referenced by LoadProperties().

◆ StaticTypeId()

template<typename T >
static size_t eng::Component::StaticTypeId ( )
inlinestaticinherited

Definition at line 26 of file Component.h.

◆ Update()

void eng::LightComponent::Update ( float  deltaTime)
overridevirtual

Implements eng::Component.

Definition at line 19 of file LightComponent.cpp.

Member Data Documentation

◆ m_owner


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