generating sol views from one static lua state

This commit is contained in:
devZoGok
2023-09-03 09:01:49 +03:00
parent aba7c30b08
commit 3f0a70a681
5 changed files with 32 additions and 3 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
#include <sol/sol.hpp>
#include "abstractAppState.h"
#include "util.h"
#include "solUtil.h"
#include "mapping.h"
namespace gameBase {
@@ -16,6 +17,7 @@ namespace gameBase {
void AbstractAppState::onAttached(){
attached = true;
sol::state_view SOL_LUA_STATE = generateView();
SOL_LUA_STATE.script_file(optionsFile);
string table = "mappings";