Class that contains core data for audio listeners. There can only be one instance of it per scene.
More...
#include <script_component.h>
|
static void | on_create_component (entt::registry &r, entt::entity e) |
| Called when the component is created.
|
|
static void | on_destroy_component (entt::registry &r, entt::entity e) |
| Called when the component is destroyed.
|
|
template<typename T > |
static void | on_create_component (entt::registry &r, entt::entity e) |
|
template<typename T > |
static void | on_destroy_component (entt::registry &r, entt::entity e) |
|
|
bool | eto {} |
| Disable empty type optimizations.
|
|
static constexpr bool | in_place_delete |
| Indicates if the component can be deleted in place.
|
|
Class that contains core data for audio listeners. There can only be one instance of it per scene.
Definition at line 21 of file script_component.h.
◆ scoped_object_ptr
◆ script_components_t
◆ add_missing_script_components()
void unravel::script_component::add_missing_script_components |
( |
const script_components_t & | comps | ) |
|
◆ add_native_component()
auto unravel::script_component::add_native_component |
( |
const mono::mono_type & | type | ) |
-> script_object |
◆ add_script_component() [1/3]
auto unravel::script_component::add_script_component |
( |
const mono::mono_object & | obj | ) |
-> script_object |
◆ add_script_component() [2/3]
auto unravel::script_component::add_script_component |
( |
const mono::mono_type & | type | ) |
-> script_object |
◆ add_script_component() [3/3]
auto unravel::script_component::add_script_component |
( |
const script_object & | obj, |
|
|
bool | process_callbacks = true ) -> script_object |
◆ add_script_components()
◆ create()
void unravel::script_component::create |
( |
| ) |
|
◆ destroy()
void unravel::script_component::destroy |
( |
| ) |
|
◆ disable()
void unravel::script_component::disable |
( |
| ) |
|
◆ enable()
void unravel::script_component::enable |
( |
| ) |
|
◆ get_native_component()
auto unravel::script_component::get_native_component |
( |
const mono::mono_type & | type | ) |
-> script_object |
◆ get_script_component()
auto unravel::script_component::get_script_component |
( |
const mono::mono_type & | type | ) |
-> script_object |
◆ get_script_components() [1/2]
◆ get_script_components() [2/2]
auto unravel::script_component::get_script_components |
( |
const mono::mono_type & | type | ) |
-> std::vector<mono::mono_object> |
◆ get_script_source_location()
auto unravel::script_component::get_script_source_location |
( |
const script_object & | obj | ) |
const -> std::string |
◆ has_script_components() [1/2]
auto unravel::script_component::has_script_components |
( |
| ) |
const -> bool |
◆ has_script_components() [2/2]
auto unravel::script_component::has_script_components |
( |
const std::string & | type_name | ) |
const -> bool |
◆ on_collision_enter()
void unravel::script_component::on_collision_enter |
( |
entt::handle | other, |
|
|
const std::vector< manifold_point > & | manifolds, |
|
|
bool | use_b ) |
◆ on_collision_exit()
void unravel::script_component::on_collision_exit |
( |
entt::handle | other, |
|
|
const std::vector< manifold_point > & | manifolds, |
|
|
bool | use_b ) |
◆ on_create_component()
void unravel::script_component::on_create_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
static |
Called when the component is created.
- Parameters
-
r | The registry containing the component. |
e | The entity associated with the component. |
Definition at line 30 of file script_component.cpp.
◆ on_destroy_component()
void unravel::script_component::on_destroy_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
static |
Called when the component is destroyed.
- Parameters
-
r | The registry containing the component. |
e | The entity associated with the component. |
Definition at line 38 of file script_component.cpp.
◆ on_sensor_enter()
void unravel::script_component::on_sensor_enter |
( |
entt::handle | other | ) |
|
◆ on_sensor_exit()
void unravel::script_component::on_sensor_exit |
( |
entt::handle | other | ) |
|
◆ process_pending_actions() [1/2]
void unravel::script_component::process_pending_actions |
( |
| ) |
|
◆ process_pending_actions() [2/2]
void unravel::script_component::process_pending_actions |
( |
script_object | script_obj | ) |
|
◆ process_pending_actions_create()
void unravel::script_component::process_pending_actions_create |
( |
script_object | script_obj | ) |
|
◆ process_pending_creates()
void unravel::script_component::process_pending_creates |
( |
| ) |
|
◆ process_pending_deletions()
void unravel::script_component::process_pending_deletions |
( |
| ) |
|
◆ process_pending_starts()
void unravel::script_component::process_pending_starts |
( |
| ) |
|
◆ remove_native_component() [1/2]
auto unravel::script_component::remove_native_component |
( |
const mono::mono_object & | obj | ) |
-> bool |
◆ remove_native_component() [2/2]
auto unravel::script_component::remove_native_component |
( |
const mono::mono_type & | type | ) |
-> bool |
◆ remove_script_component() [1/2]
auto unravel::script_component::remove_script_component |
( |
const mono::mono_object & | obj | ) |
-> bool |
◆ remove_script_component() [2/2]
auto unravel::script_component::remove_script_component |
( |
const mono::mono_type & | type | ) |
-> bool |
◆ start()
void unravel::script_component::start |
( |
| ) |
|
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/scripting/ecs/components/script_component.h
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/scripting/ecs/components/script_component.cpp