Lua service component.
More...
#include <lua_service.hpp>
Lua service component.
This component is responsible for executing Lua scripts.
◆ CLuaService()
CLuaService::CLuaService |
( |
| ) |
|
|
inline |
◆ ExecuteScript()
sol::protected_function_result CLuaService::ExecuteScript |
( |
std::string |
script | ) |
|
Execute a script.
- Parameters
-
- Returns
- Result of the script.
◆ ExecuteScriptFile()
void CLuaService::ExecuteScriptFile |
( |
std::string |
path | ) |
|
Execute a script file.
- Parameters
-
path | Path to the script file. |
◆ Init()
void CLuaService::Init |
( |
| ) |
|
|
inlineoverridevirtual |
Initialize the Lua service.
Reimplemented from CComponent.
◆ Update()
void CLuaService::Update |
( |
| ) |
|
|
overridevirtual |
Update the Lua service.
Reimplemented from CComponent.
The documentation for this class was generated from the following file:
- xenon/includes/xenon/components/services/lua_service.hpp