i6engine  1.0
i6e::modules::LuaScriptingManager Class Reference

#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/modules/luascripting/LuaScriptingManager.h>

Public Member Functions

 LuaScriptingManager ()
 constructor More...
 
 ~LuaScriptingManager ()
 destructor More...
 
void Tick ()
 
template<typename Ret , typename... args>
std::enable_if< std::is_void< Ret >::value, Ret >::type callScript (const std::string &file, const std::string &func, args...B)
 executes the given method in the given script with return type void More...
 
template<typename Ret , typename... args>
std::enable_if<!std::is_void< Ret >::value, std::shared_ptr< utils::Future< Ret > > >::type callScript (const std::string &file, const std::string &func, args...B)
 executes the given method in the given script with return type non-void More...
 
template<typename Ret , typename... args>
std::enable_if< std::is_void< Ret >::value, Ret >::type callFunction (const std::string &func, args...B)
 executes the given method with return type void More...
 
template<typename Ret , typename... args>
std::enable_if<!std::is_void< Ret >::value, std::shared_ptr< utils::Future< Ret > > >::type callFunction (const std::string &func, args...B)
 executes the given method with return type non-void More...
 
template<typename Ret , typename... args>
std::enable_if< std::is_void< Ret >::value, Ret >::type callScriptWithCallback (const std::string &file, const std::string &func, const std::function< void(void)> &callback, args...B)
 executes the given method in the given script with return type void and calls callback after scripts was executed More...
 
template<typename Ret , typename... args>
std::enable_if<!std::is_void< Ret >::value, std::shared_ptr< utils::Future< Ret > > >::type callScriptWithCallback (const std::string &file, const std::string &func, const std::function< void(void)> &callback, args...B)
 executes the given method in the given script with return type non-void and calls callback after scripts was executed More...
 
template<typename Ret , typename... args>
std::enable_if< std::is_void< Ret >::value, Ret >::type callFunctionWithCallback (const std::string &func, const std::function< void(void)> &callback, args...B)
 executes the given method with return type void and calls callback after scripts was executed More...
 
template<typename Ret , typename... args>
std::enable_if<!std::is_void< Ret >::value, std::shared_ptr< utils::Future< Ret > > >::type callFunctionWithCallback (const std::string &func, const std::function< void(void)> &callback, args...B)
 executes the given method with return type non-void and calls callback after scripts was executed More...
 
template<typename T >
std::enable_if< std::is_pointer< T >::value >::type setGlobalVariable (const std::string &name, T value)
 sets a global variable More...
 
void loadAllScripts ()
 loads all scripts into dictionary More...
 

Friends

class LuaScriptingMailbox
 
class api::ScriptingFacade
 

Detailed Description

Definition at line 48 of file LuaScriptingManager.h.

Constructor & Destructor Documentation

i6e::modules::LuaScriptingManager::LuaScriptingManager ( )

constructor

i6e::modules::LuaScriptingManager::~LuaScriptingManager ( )

destructor

Member Function Documentation

template<typename Ret , typename... args>
std::enable_if<std::is_void<Ret>::value, Ret>::type i6e::modules::LuaScriptingManager::callFunction ( const std::string &  func,
args...  B 
)
inline

executes the given method with return type void

Definition at line 117 of file LuaScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<!std::is_void<Ret>::value, std::shared_ptr<utils::Future<Ret> > >::type i6e::modules::LuaScriptingManager::callFunction ( const std::string &  func,
args...  B 
)
inline

executes the given method with return type non-void

Definition at line 137 of file LuaScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<std::is_void<Ret>::value, Ret>::type i6e::modules::LuaScriptingManager::callFunctionWithCallback ( const std::string &  func,
const std::function< void(void)> &  callback,
args...  B 
)
inline

executes the given method with return type void and calls callback after scripts was executed

Definition at line 209 of file LuaScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<!std::is_void<Ret>::value, std::shared_ptr<utils::Future<Ret> > >::type i6e::modules::LuaScriptingManager::callFunctionWithCallback ( const std::string &  func,
const std::function< void(void)> &  callback,
args...  B 
)
inline

executes the given method with return type non-void and calls callback after scripts was executed

Definition at line 230 of file LuaScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<std::is_void<Ret>::value, Ret>::type i6e::modules::LuaScriptingManager::callScript ( const std::string &  file,
const std::string &  func,
args...  B 
)
inline

executes the given method in the given script with return type void

Definition at line 69 of file LuaScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<!std::is_void<Ret>::value, std::shared_ptr<utils::Future<Ret> > >::type i6e::modules::LuaScriptingManager::callScript ( const std::string &  file,
const std::string &  func,
args...  B 
)
inline

executes the given method in the given script with return type non-void

Definition at line 92 of file LuaScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<std::is_void<Ret>::value, Ret>::type i6e::modules::LuaScriptingManager::callScriptWithCallback ( const std::string &  file,
const std::string &  func,
const std::function< void(void)> &  callback,
args...  B 
)
inline

executes the given method in the given script with return type void and calls callback after scripts was executed

Definition at line 159 of file LuaScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<!std::is_void<Ret>::value, std::shared_ptr<utils::Future<Ret> > >::type i6e::modules::LuaScriptingManager::callScriptWithCallback ( const std::string &  file,
const std::string &  func,
const std::function< void(void)> &  callback,
args...  B 
)
inline

executes the given method in the given script with return type non-void and calls callback after scripts was executed

Definition at line 183 of file LuaScriptingManager.h.

void i6e::modules::LuaScriptingManager::loadAllScripts ( )

loads all scripts into dictionary

template<typename T >
std::enable_if<std::is_pointer<T>::value>::type i6e::modules::LuaScriptingManager::setGlobalVariable ( const std::string &  name,
value 
)
inline

sets a global variable

Definition at line 253 of file LuaScriptingManager.h.

void i6e::modules::LuaScriptingManager::Tick ( )

Friends And Related Function Documentation

friend class api::ScriptingFacade
friend

Definition at line 50 of file LuaScriptingManager.h.

friend class LuaScriptingMailbox
friend

Definition at line 49 of file LuaScriptingManager.h.


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