scripting.h fix + input library

This commit is contained in:
MihailRis 2024-05-05 00:28:30 +03:00
parent f9dd865bee
commit f02edcf15a
12 changed files with 121 additions and 34 deletions

View file

@ -2,7 +2,6 @@
#include "../../typedefs.h"
#include "../../delegates.h"
#include "lua/LuaState.h"
#include "scripting_functional.h"
#include <vector>
@ -41,9 +40,6 @@ namespace scripting {
extern bool register_event(int env, const std::string& name, const std::string& id);
static inline int noargs(lua::LuaState *) { return 0; }
extern bool emit_event(const std::string& name, std::function<int(lua::LuaState* state)> args = noargs);
scriptenv get_root_environment();
scriptenv create_pack_environment(const ContentPack& pack);
scriptenv create_doc_environment(scriptenv parent, const std::string& name);