Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvCore::ECS::Components::CAmbientBoxLight Class Reference

#include <CAmbientBoxLight.h>

Inheritance diagram for OvCore::ECS::Components::CAmbientBoxLight:
OvCore::ECS::Components::CLight OvCore::ECS::Components::AComponent OvCore::API::IInspectorItem OvCore::API::ISerializable

Public Member Functions

 CAmbientBoxLight (ECS::Actor &p_owner)
 
std::string GetName () override
 
OvMaths::FVector3 GetSize () const
 
void SetSize (const OvMaths::FVector3 &p_size)
 
virtual void OnSerialize (tinyxml2::XMLDocument &p_doc, tinyxml2::XMLNode *p_node) override
 
virtual void OnDeserialize (tinyxml2::XMLDocument &p_doc, tinyxml2::XMLNode *p_node) override
 
virtual void OnInspector (OvUI::Internal::WidgetContainer &p_root) override
 
- Public Member Functions inherited from OvCore::ECS::Components::CLight
 CLight (ECS::Actor &p_owner)
 
const OvRendering::Entities::LightGetData () const
 
const OvMaths::FVector3GetColor () const
 
float GetIntensity () const
 
void SetColor (const OvMaths::FVector3 &p_color)
 
void SetIntensity (float p_intensity)
 
- Public Member Functions inherited from OvCore::ECS::Components::AComponent
 AComponent (ECS::Actor &p_owner)
 
virtual ~AComponent ()
 
virtual void OnAwake ()
 
virtual void OnStart ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void OnDestroy ()
 
virtual void OnUpdate (float p_deltaTime)
 
virtual void OnFixedUpdate (float p_deltaTime)
 
virtual void OnLateUpdate (float p_deltaTime)
 
virtual void OnCollisionEnter (Components::CPhysicalObject &p_otherObject)
 
virtual void OnCollisionStay (Components::CPhysicalObject &p_otherObject)
 
virtual void OnCollisionExit (Components::CPhysicalObject &p_otherObject)
 
virtual void OnTriggerEnter (Components::CPhysicalObject &p_otherObject)
 
virtual void OnTriggerStay (Components::CPhysicalObject &p_otherObject)
 
virtual void OnTriggerExit (Components::CPhysicalObject &p_otherObject)
 

Additional Inherited Members

- Public Attributes inherited from OvCore::ECS::Components::AComponent
ECS::Actorowner
 
- Protected Attributes inherited from OvCore::ECS::Components::CLight
OvRendering::Entities::Light m_data
 

Detailed Description

Represents an ambient light with a box shape

Constructor & Destructor Documentation

◆ CAmbientBoxLight()

OvCore::ECS::Components::CAmbientBoxLight::CAmbientBoxLight ( ECS::Actor p_owner)

Constructor

Parameters
p_owner@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

Member Function Documentation

◆ GetName()

std::string OvCore::ECS::Components::CAmbientBoxLight::GetName ( )
overridevirtual

Returns the name of the component

Implements OvCore::ECS::Components::AComponent.

◆ GetSize()

OvMaths::FVector3 OvCore::ECS::Components::CAmbientBoxLight::GetSize ( ) const

Returns the size of the box

◆ OnDeserialize()

void OvCore::ECS::Components::CAmbientBoxLight::OnDeserialize ( tinyxml2::XMLDocument &  p_doc,
tinyxml2::XMLNode *  p_node 
)
overridevirtual

Deserialize the component

Parameters
p_doc
p_node

Reimplemented from OvCore::ECS::Components::CLight.

◆ OnInspector()

void OvCore::ECS::Components::CAmbientBoxLight::OnInspector ( OvUI::Internal::WidgetContainer p_root)
overridevirtual

Defines how the component should be drawn in the inspector

Parameters
p_root

Reimplemented from OvCore::ECS::Components::CLight.

◆ OnSerialize()

void OvCore::ECS::Components::CAmbientBoxLight::OnSerialize ( tinyxml2::XMLDocument &  p_doc,
tinyxml2::XMLNode *  p_node 
)
overridevirtual

Serialize the component

Parameters
p_doc
p_node

Reimplemented from OvCore::ECS::Components::CLight.

◆ SetSize()

void OvCore::ECS::Components::CAmbientBoxLight::SetSize ( const OvMaths::FVector3 p_size)

Defines the size of the box

Parameters
p_size

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