Merge pull request #2 from r-o-b-o-t-o/feat/http-requests

feat: add HttpRequest method
This commit is contained in:
55Honey
2021-10-20 21:11:21 +02:00
committed by GitHub
9 changed files with 8487 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
#include "World.h"
#include "Hooks.h"
#include "ElunaUtility.h"
#include "HttpManager.h"
#include <mutex>
#include <memory>
@@ -178,7 +179,6 @@ private:
void DestroyBindStores();
void CreateBindStores();
void InvalidateObjects();
bool ExecuteCall(int params, int res);
// Use ReloadEluna() to make eluna reload
// This is called on world update to reload eluna
@@ -237,6 +237,7 @@ public:
lua_State* L;
EventMgr* eventMgr;
HttpManager httpManager;
BindingMap< EventKey<Hooks::ServerEvents> >* ServerEventBindings;
BindingMap< EventKey<Hooks::PlayerEvents> >* PlayerEventBindings;
@@ -301,6 +302,8 @@ public:
ElunaTemplate<T>::Push(luastate, ptr);
}
bool ExecuteCall(int params, int res);
/*
* Returns `true` if Eluna has instance data for `map`.
*/