mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 16:57:57 +03:00
16 lines
400 B
C
16 lines
400 B
C
![]() |
#pragma once
|
||
|
#include "framework.h"
|
||
|
class LuaHandler {
|
||
|
protected:
|
||
|
sol::state* m_lua;
|
||
|
~LuaHandler() = default;
|
||
|
|
||
|
public:
|
||
|
LuaHandler(sol::state* lua);
|
||
|
LuaHandler(LuaHandler const &) = delete;
|
||
|
LuaHandler& operator=(LuaHandler const &) = delete;
|
||
|
|
||
|
bool ExecuteScript(const std::string & luaFilename, std::string & message);
|
||
|
bool ExecuteString(const std::string& command, std::string& message);
|
||
|
};
|