#include <script_system.h>
|
| | script_system (rtti::context &ctx, cmd_line::parser &parser) |
| |
| auto | init (rtti::context &ctx, const cmd_line::parser &parser) -> bool |
| |
| auto | deinit (rtti::context &ctx) -> bool |
| |
| void | set_debug_config (const std::string &address, uint32_t port, uint32_t loglevel) |
| |
| auto | load_engine_domain (rtti::context &ctx, bool recompile) -> bool |
| |
| void | unload_engine_domain () |
| |
| auto | load_app_domain (rtti::context &ctx, bool recompile) -> bool |
| |
| void | unload_app_domain () |
| |
| auto | get_all_scriptable_components () const -> const std::vector< dotnet::type > & |
| |
| auto | get_scriptable_component_base_type () const -> dotnet::type |
| |
| auto | get_engine_assembly () const -> dotnet::assembly |
| |
| auto | get_app_assembly () const -> dotnet::assembly |
| |
| auto | get_cache () const -> const engine_script_cache & |
| |
| auto | get_type_by_fullname (const std::string &fullname) const -> dotnet::type |
| |
| auto | get_type (const std::string &name_space, const std::string &name) const -> dotnet::type |
| |
| auto | is_create_called () const -> bool |
| |
| auto | is_update_called () const -> bool |
| |
| void | wait_for_jobs_to_finish (rtti::context &ctx) |
| |
| auto | has_compilation_errors () const -> bool |
| |
| void | on_sensor_enter (entt::handle sensor, entt::handle other, const std::vector< manifold_point > &manifolds) |
| |
| void | on_sensor_exit (entt::handle sensor, entt::handle other, const std::vector< manifold_point > &manifolds) |
| |
| void | on_collision_enter (entt::handle a, entt::handle b, const std::vector< manifold_point > &manifolds) |
| |
| void | on_collision_exit (entt::handle a, entt::handle b, const std::vector< manifold_point > &manifolds) |
| |
| void | on_play_begin (rtti::context &ctx) |
| | Called when playback begins.
|
| |
| void | on_play_begin (hpp::span< const entt::handle > entities) |
| |
| void | on_play_begin (entt::registry &entities) |
| |
Definition at line 19 of file script_system.h.
◆ script_system()
◆ copy_compiled_lib()
| void unravel::script_system::copy_compiled_lib |
( |
const fs::path & | from, |
|
|
const fs::path & | to ) |
|
static |
◆ deinit()
| auto unravel::script_system::deinit |
( |
rtti::context & | ctx | ) |
-> bool |
◆ find_dotnet_paths()
| auto unravel::script_system::find_dotnet_paths |
( |
const rtti::context & | ctx | ) |
-> dotnet::compiler_paths |
|
static |
◆ get_all_scriptable_components()
| auto unravel::script_system::get_all_scriptable_components |
( |
| ) |
const -> const std::vector<dotnet::type>& |
◆ get_app_assembly()
| auto unravel::script_system::get_app_assembly |
( |
| ) |
const -> dotnet::assembly |
◆ get_cache()
◆ get_engine_assembly()
| auto unravel::script_system::get_engine_assembly |
( |
| ) |
const -> dotnet::assembly |
◆ get_lib_compiled_key()
| auto unravel::script_system::get_lib_compiled_key |
( |
const std::string & | protocol | ) |
-> std::string |
|
static |
◆ get_lib_data_key()
| auto unravel::script_system::get_lib_data_key |
( |
const std::string & | protocol | ) |
-> std::string |
|
static |
◆ get_lib_name()
| auto unravel::script_system::get_lib_name |
( |
const std::string & | protocol | ) |
-> std::string |
|
static |
◆ get_lib_temp_compiled_key()
| auto unravel::script_system::get_lib_temp_compiled_key |
( |
const std::string & | protocol | ) |
-> std::string |
|
static |
◆ get_script_debug_mode()
| auto unravel::script_system::get_script_debug_mode |
( |
| ) |
-> bool |
|
static |
◆ get_scriptable_component_base_type()
| auto unravel::script_system::get_scriptable_component_base_type |
( |
| ) |
const -> dotnet::type |
◆ get_type()
| auto unravel::script_system::get_type |
( |
const std::string & | name_space, |
|
|
const std::string & | name ) const -> dotnet::type |
◆ get_type_by_fullname()
| auto unravel::script_system::get_type_by_fullname |
( |
const std::string & | fullname | ) |
const -> dotnet::type |
◆ has_compilation_errors()
| auto unravel::script_system::has_compilation_errors |
( |
| ) |
const -> bool |
◆ init()
◆ is_create_called()
| auto unravel::script_system::is_create_called |
( |
| ) |
const -> bool |
◆ is_debugger_attached()
| auto unravel::script_system::is_debugger_attached |
( |
| ) |
-> bool |
|
static |
◆ is_update_called()
| auto unravel::script_system::is_update_called |
( |
| ) |
const -> bool |
◆ load_app_domain()
| auto unravel::script_system::load_app_domain |
( |
rtti::context & | ctx, |
|
|
bool | recompile ) -> bool |
◆ load_engine_domain()
| auto unravel::script_system::load_engine_domain |
( |
rtti::context & | ctx, |
|
|
bool | recompile ) -> bool |
◆ log_exception()
| void unravel::script_system::log_exception |
( |
const dotnet::exception & | e, |
|
|
const hpp::source_location & | loc = hpp::source_location::current() ) |
|
static |
◆ on_collision_enter()
| void unravel::script_system::on_collision_enter |
( |
entt::handle | a, |
|
|
entt::handle | b, |
|
|
const std::vector< manifold_point > & | manifolds ) |
◆ on_collision_exit()
| void unravel::script_system::on_collision_exit |
( |
entt::handle | a, |
|
|
entt::handle | b, |
|
|
const std::vector< manifold_point > & | manifolds ) |
◆ on_create_active_component()
| void unravel::script_system::on_create_active_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
static |
◆ on_create_component()
| void unravel::script_system::on_create_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
static |
Called when a physics component is created.
- Parameters
-
| r | The registry containing the component. |
| e | The entity associated with the component. |
Definition at line 533 of file script_system.cpp.
◆ on_destroy_active_component()
| void unravel::script_system::on_destroy_active_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
static |
◆ on_destroy_component()
| void unravel::script_system::on_destroy_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
static |
Called when a physics component is destroyed.
- Parameters
-
| r | The registry containing the component. |
| e | The entity associated with the component. |
Definition at line 540 of file script_system.cpp.
◆ on_load_component()
| void unravel::script_system::on_load_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
static |
Called when a script component is loaded.
- Parameters
-
| r | The registry containing the component. |
| e | The entity associated with the component. |
Definition at line 536 of file script_system.cpp.
◆ on_play_begin() [1/3]
| void unravel::script_system::on_play_begin |
( |
entt::registry & | entities | ) |
|
◆ on_play_begin() [2/3]
| void unravel::script_system::on_play_begin |
( |
hpp::span< const entt::handle > | entities | ) |
|
◆ on_play_begin() [3/3]
| void unravel::script_system::on_play_begin |
( |
rtti::context & | ctx | ) |
|
Called when playback begins.
- Parameters
-
| ctx | The context for the playback. |
Definition at line 653 of file script_system.cpp.
◆ on_sensor_enter()
| void unravel::script_system::on_sensor_enter |
( |
entt::handle | sensor, |
|
|
entt::handle | other, |
|
|
const std::vector< manifold_point > & | manifolds ) |
◆ on_sensor_exit()
| void unravel::script_system::on_sensor_exit |
( |
entt::handle | sensor, |
|
|
entt::handle | other, |
|
|
const std::vector< manifold_point > & | manifolds ) |
◆ set_debug_config()
| void unravel::script_system::set_debug_config |
( |
const std::string & | address, |
|
|
uint32_t | port, |
|
|
uint32_t | loglevel ) |
◆ set_needs_recompile()
| void unravel::script_system::set_needs_recompile |
( |
const std::string & | protocol, |
|
|
bool | now = false ) |
|
static |
◆ set_script_debug_mode()
| void unravel::script_system::set_script_debug_mode |
( |
bool | debug | ) |
|
|
static |
◆ unload_app_domain()
| void unravel::script_system::unload_app_domain |
( |
| ) |
|
◆ unload_engine_domain()
| void unravel::script_system::unload_engine_domain |
( |
| ) |
|
◆ wait_for_jobs_to_finish()
| void unravel::script_system::wait_for_jobs_to_finish |
( |
rtti::context & | ctx | ) |
|
The documentation for this struct was generated from the following files: