mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
scripting.h fix + input library
This commit is contained in:
parent
f9dd865bee
commit
f02edcf15a
12 changed files with 121 additions and 34 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue