move generator script execution to an isolated Lua state
This commit is contained in:
@@ -17,11 +17,13 @@ namespace lua {
|
||||
void finalize();
|
||||
|
||||
bool emit_event(
|
||||
lua::State*,
|
||||
State*,
|
||||
const std::string& name,
|
||||
std::function<int(lua::State*)> args = [](auto*) { return 0; }
|
||||
std::function<int(State*)> args = [](auto*) { return 0; }
|
||||
);
|
||||
lua::State* get_main_thread();
|
||||
State* get_main_state();
|
||||
State* create_state(StateType stateType);
|
||||
[[nodiscard]] scriptenv create_environment(State* L);
|
||||
|
||||
void init_state(lua::State* L, StateType stateType);
|
||||
void init_state(State* L, StateType stateType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user