#include <manager.hpp>
Classes | |
struct | event |
Public Member Functions | |
plugins_manager (application_lua_kernel *) | |
~plugins_manager () | |
lua_kernel_base * | get_kernel_base () |
void | play_slice (const plugins_context &) |
void | notify_event (const std::string &name, const config &data) |
std::size_t | size () |
plugin_manager_status::type | get_status (std::size_t idx) |
std::string | get_detailed_status (std::size_t idx) |
std::string | get_name (std::size_t idx) |
bool | any_running () |
std::size_t | load_plugin (const std::string &name, const std::string &filename) |
std::size_t | add_plugin (const std::string &name, const std::string &prog) |
void | start_plugin (std::size_t idx) |
Static Public Member Functions | |
static plugins_manager * | get () |
Private Attributes | |
std::vector< plugin > | plugins_ |
std::shared_ptr< bool > | playing_ |
std::unique_ptr< application_lua_kernel > | kernel_ |
Definition at line 34 of file manager.hpp.
plugins_manager::plugins_manager | ( | application_lua_kernel * | kernel | ) |
Definition at line 43 of file manager.cpp.
References add_plugin(), kernel_, singleton, and start_plugin().
plugins_manager::~plugins_manager | ( | ) |
Definition at line 56 of file manager.cpp.
std::size_t plugins_manager::add_plugin | ( | const std::string & | name, |
const std::string & | prog | ||
) |
Definition at line 118 of file manager.cpp.
Referenced by game_launcher::init_lua_script(), and plugins_manager().
bool plugins_manager::any_running | ( | ) |
Definition at line 206 of file manager.cpp.
References get_status(), i, and size().
Referenced by gui2::dialogs::modal_dialog::show().
|
static |
Definition at line 58 of file manager.cpp.
References singleton.
Referenced by events::menu_handler::add_chat_message(), gui2::dialogs::lua_interpreter::display(), game_launcher::init_lua_script(), intf_describe_plugins(), plugins_context::play_slice(), gui2::dialogs::plugin_executor::plugin_executor(), gui2::chatbox::process_message(), gui2::dialogs::modal_dialog::show(), and gui2::dialogs::plugin_executor::~plugin_executor().
std::string plugins_manager::get_detailed_status | ( | std::size_t | idx | ) |
Definition at line 83 of file manager.cpp.
References plugins_.
Referenced by game_launcher::init_lua_script().
lua_kernel_base * plugins_manager::get_kernel_base | ( | ) |
Definition at line 63 of file manager.cpp.
References kernel_.
Referenced by game_launcher::init_lua_script().
std::string plugins_manager::get_name | ( | std::size_t | idx | ) |
Definition at line 94 of file manager.cpp.
References plugins_.
Referenced by game_launcher::init_lua_script(), and intf_describe_plugins().
plugin_manager_status::type plugins_manager::get_status | ( | std::size_t | idx | ) |
std::size_t plugins_manager::load_plugin | ( | const std::string & | name, |
const std::string & | filename | ||
) |
Definition at line 131 of file manager.cpp.
void plugins_manager::notify_event | ( | const std::string & | name, |
const config & | data | ||
) |
Definition at line 144 of file manager.cpp.
References data, plugins_, and size().
Referenced by events::menu_handler::add_chat_message(), and gui2::chatbox::process_message().
void plugins_manager::play_slice | ( | const plugins_context & | ctxt | ) |
Definition at line 158 of file manager.cpp.
References DBG_PLG, playing_, plugins_, and size().
Referenced by plugins_context::play_slice().
std::size_t plugins_manager::size | ( | ) |
Definition at line 68 of file manager.cpp.
References plugins_.
Referenced by any_running(), game_launcher::init_lua_script(), intf_describe_plugins(), notify_event(), and play_slice().
void plugins_manager::start_plugin | ( | std::size_t | idx | ) |
Definition at line 101 of file manager.cpp.
References DBG_PLG, kernel_, and plugins_.
Referenced by game_launcher::init_lua_script(), and plugins_manager().
|
private |
Definition at line 67 of file manager.hpp.
Referenced by get_kernel_base(), plugins_manager(), and start_plugin().
|
private |
Definition at line 66 of file manager.hpp.
Referenced by play_slice().
|
private |
Definition at line 65 of file manager.hpp.
Referenced by add_plugin(), get_detailed_status(), get_name(), get_status(), load_plugin(), notify_event(), play_slice(), size(), and start_plugin().