#include <ScriptComponent.h>
|
| enum class | PropertyType {
FLOAT
, INT
, BOOL
, STRING
,
VEC2
, VEC3
, VEC4
, COLOR3
,
COLOR4
, TEXTURE
, MATERIAL
, ARRAY
} |
| |
Definition at line 29 of file ScriptComponent.h.
◆ PropertyType
| Enumerator |
|---|
| FLOAT | |
| INT | |
| BOOL | |
| STRING | |
| VEC2 | |
| VEC3 | |
| VEC4 | |
| COLOR3 | |
| COLOR4 | |
| TEXTURE | |
| MATERIAL | |
| ARRAY | |
Definition at line 31 of file ScriptComponent.h.
◆ ScriptComponent()
| hellfire::ScriptComponent::ScriptComponent |
( |
| ) |
|
|
default |
◆ ~ScriptComponent()
| virtual hellfire::ScriptComponent::~ScriptComponent |
( |
| ) |
|
|
virtualdefault |
◆ get_class_name()
| virtual const char * hellfire::ScriptComponent::get_class_name |
( |
| ) |
const |
|
inlinevirtual |
◆ get_component()
template<typename T >
| T * hellfire::ScriptComponent::get_component |
( |
| ) |
const |
|
inline |
◆ get_properties()
| const std::vector< PropertyInfo > & hellfire::ScriptComponent::get_properties |
( |
| ) |
const |
|
inline |
◆ get_transform()
◆ has_component()
template<typename T >
| bool hellfire::ScriptComponent::has_component |
( |
| ) |
const |
|
inline |
◆ init()
| void hellfire::ScriptComponent::init |
( |
| ) |
|
|
inline |
◆ is_enabled()
| bool hellfire::ScriptComponent::is_enabled |
( |
| ) |
const |
|
inline |
◆ on_event()
| virtual void hellfire::ScriptComponent::on_event |
( |
const std::string & |
event_name, |
|
|
void * |
data = nullptr |
|
) |
| |
|
inlinevirtual |
◆ on_init()
| virtual void hellfire::ScriptComponent::on_init |
( |
| ) |
|
|
inlinevirtual |
◆ on_remove()
| virtual void hellfire::ScriptComponent::on_remove |
( |
| ) |
|
|
inlinevirtual |
◆ on_update()
| virtual void hellfire::ScriptComponent::on_update |
( |
float |
delta_time | ) |
|
|
inlinevirtual |
◆ register_property()
template<typename T >
| void hellfire::ScriptComponent::register_property |
( |
const std::string & |
name, |
|
|
T * |
ptr, |
|
|
PropertyType |
type |
|
) |
| |
|
inlineprotected |
◆ remove()
| void hellfire::ScriptComponent::remove |
( |
| ) |
|
|
inline |
◆ set_enabled()
| void hellfire::ScriptComponent::set_enabled |
( |
const bool |
enabled | ) |
|
|
inline |
◆ trigger_event()
| void hellfire::ScriptComponent::trigger_event |
( |
const std::string & |
event_name, |
|
|
void * |
data = nullptr |
|
) |
| |
|
inline |
◆ update()
| void hellfire::ScriptComponent::update |
( |
const float |
delta_time | ) |
|
|
inline |
◆ enabled_
| bool hellfire::ScriptComponent::enabled_ = true |
|
protected |
◆ properties_
| std::vector<PropertyInfo> hellfire::ScriptComponent::properties_ |
|
protected |
The documentation for this class was generated from the following files: