Finality Engine
Loading...
Searching...
No Matches
FINALITY::ScriptableComponent Class Reference

#include <ScriptableComponent.h>

Inheritance diagram for FINALITY::ScriptableComponent:
FINALITY::CameraMovementScript FINALITY::CameraMovementScript FINALITY::KeyPrintScript FINALITY::LavaScript FINALITY::TestScript

Public Member Functions

virtual ~ScriptableComponent ()=default
Entity GetEntity ()
const Entity GetEntity () const

Protected Member Functions

template<typename T>
bool HasComponent () const
template<typename T>
T & GetComponent ()

Protected Attributes

entt::entity m_EntityHandle { entt::null }
Scene * m_CurrentScene = nullptr
std::weak_ptr< void > m_Lifetime

Friends

class Scene
class Entity
class ScriptRegistry

Detailed Description

Todo
TODO: Document ScriptableComponent class semantics, ownership and usage.

Definition at line 95 of file ScriptableComponent.h.

Constructor & Destructor Documentation

◆ ~ScriptableComponent()

virtual FINALITY::ScriptableComponent::~ScriptableComponent ( )
virtualdefault

Member Function Documentation

◆ GetEntity() [1/2]

Entity FINALITY::ScriptableComponent::GetEntity ( )

◆ GetEntity() [2/2]

const Entity FINALITY::ScriptableComponent::GetEntity ( ) const

◆ HasComponent()

template<typename T>
bool FINALITY::ScriptableComponent::HasComponent ( ) const
protected

◆ GetComponent()

template<typename T>
T & FINALITY::ScriptableComponent::GetComponent ( )
protected

◆ Scene

friend class Scene
friend

Definition at line 125 of file ScriptableComponent.h.

◆ Entity

friend class Entity
friend

Definition at line 126 of file ScriptableComponent.h.

◆ ScriptRegistry

friend class ScriptRegistry
friend

Definition at line 127 of file ScriptableComponent.h.

Member Data Documentation

◆ m_EntityHandle

entt::entity FINALITY::ScriptableComponent::m_EntityHandle { entt::null }
protected

Definition at line 111 of file ScriptableComponent.h.

◆ m_CurrentScene

Scene* FINALITY::ScriptableComponent::m_CurrentScene = nullptr
protected

Definition at line 112 of file ScriptableComponent.h.

◆ m_Lifetime

std::weak_ptr<void> FINALITY::ScriptableComponent::m_Lifetime
protected

Definition at line 113 of file ScriptableComponent.h.


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