|
R-Type
Distributed multiplayer game engine in C++
|
Component that holds the path to a Lua script for entity behavior. More...
#include <LuaScript.hpp>


Public Member Functions | |
| LuaScript () | |
| Default constructor. Initializes with an empty script path. | |
| LuaScript (const std::string &scriptPath) | |
| Constructor with script path. | |
| ~LuaScript () override=default | |
| const std::string & | getScriptPath () const |
| Get the path to the Lua script. | |
| void | setScriptPath (const std::string &scriptPath) |
| Set the path to the Lua script. | |
| ComponentType | getType () const override |
| Get the unique type identifier for this component. | |
Public Member Functions inherited from ecs::IComponent | |
| virtual | ~IComponent ()=default |
| Virtual destructor. | |
Private Attributes | |
| std::string | _scriptPath |
Component that holds the path to a Lua script for entity behavior.
This component allows entities to be associated with Lua scripts, enabling dynamic behavior defined in external script files.
Definition at line 21 of file LuaScript.hpp.
|
inline |
Default constructor. Initializes with an empty script path.
Definition at line 27 of file LuaScript.hpp.
|
inlineexplicit |
Constructor with script path.
| scriptPath | Path to the Lua script file. |
Definition at line 33 of file LuaScript.hpp.
|
overridedefault |
|
inline |
Get the path to the Lua script.
Definition at line 40 of file LuaScript.hpp.
References _scriptPath.
Referenced by scripting::LuaSystemAdapter::update().
|
inlineoverridevirtual |
Get the unique type identifier for this component.
Implements ecs::IComponent.
Definition at line 52 of file LuaScript.hpp.
|
inline |
Set the path to the Lua script.
| scriptPath | New script file path. |
Definition at line 46 of file LuaScript.hpp.
References _scriptPath.
|
private |
Path to the Lua script file
Definition at line 55 of file LuaScript.hpp.
Referenced by getScriptPath(), and setScriptPath().