![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
An encapsulation of a bunch of functions for easy usage of a script. More...
#include <Script.hpp>
Collaboration diagram for galaxy::Script:Public Member Functions | |
| Script () noexcept | |
| Constructor. | |
| Script (const std::string &file) | |
| Argument Constructor. | |
| ~Script () noexcept | |
| Destructor. | |
| bool | load (const std::string &file) |
| Load a script. | |
| sol::protected_function_result | run () |
| Run a lua script and get a return value. | |
Private Attributes | |
| sol::load_result | m_script |
| Script loaded into sol3 memory. | |
An encapsulation of a bunch of functions for easy usage of a script.
Definition at line 18 of file Script.hpp.
|
noexcept |
Constructor.
Definition at line 18 of file Script.cpp.
| galaxy::Script::Script | ( | const std::string & | file | ) |
Argument Constructor.
| file | File in VFS to load as a script. |
Definition at line 22 of file Script.cpp.
Here is the call graph for this function:
|
noexcept |
Destructor.
Definition at line 27 of file Script.cpp.
|
nodiscard |
Load a script.
| file | File in VFS to load as a script. |
Definition at line 31 of file Script.cpp.
Here is the caller graph for this function:| sol::protected_function_result galaxy::Script::run | ( | ) |
Run a lua script and get a return value.
Definition at line 53 of file Script.cpp.
|
private |
Script loaded into sol3 memory.
Definition at line 58 of file Script.hpp.