8#include <entt/locator/locator.hpp>
33 auto& fs = entt::locator<VirtualFileSystem>::value();
35 const auto script = fs.read(file);
38 m_script = entt::locator<sol::state>::value().load(script);
#define GALAXY_LOG(level, msg,...)
#define GALAXY_UNUSED(var)
Pragma.hpp galaxy.
~Script() noexcept
Destructor.
Script() noexcept
Constructor.
sol::protected_function_result run()
Run a lua script and get a return value.
bool load(const std::string &file)
Load a script.
sol::load_result m_script
Script loaded into sol3 memory.