summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-03-02 10:05:10 +0100
committerMattes D <github@xoft.cz>2016-03-17 19:29:01 +0100
commit62d81eb763e6fb72af5d828c1892156e1f5a3127 (patch)
tree7c04181f9f1f21dbe6a5ef00d5fed53c1baa8a54 /src/Bindings/PluginLua.h
parentAdded cLuaState::cCallback for representing (resettable) Lua callbacks. (diff)
downloadcuberite-62d81eb763e6fb72af5d828c1892156e1f5a3127.tar
cuberite-62d81eb763e6fb72af5d828c1892156e1f5a3127.tar.gz
cuberite-62d81eb763e6fb72af5d828c1892156e1f5a3127.tar.bz2
cuberite-62d81eb763e6fb72af5d828c1892156e1f5a3127.tar.lz
cuberite-62d81eb763e6fb72af5d828c1892156e1f5a3127.tar.xz
cuberite-62d81eb763e6fb72af5d828c1892156e1f5a3127.tar.zst
cuberite-62d81eb763e6fb72af5d828c1892156e1f5a3127.zip
Diffstat (limited to 'src/Bindings/PluginLua.h')
-rw-r--r--src/Bindings/PluginLua.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/Bindings/PluginLua.h b/src/Bindings/PluginLua.h
index db6612671..dac782a43 100644
--- a/src/Bindings/PluginLua.h
+++ b/src/Bindings/PluginLua.h
@@ -10,7 +10,6 @@
#pragma once
#include "Plugin.h"
-#include "WebPlugin.h"
#include "LuaState.h"
// Names for the global variables through which the plugin is identified in its LuaState
@@ -29,8 +28,7 @@ class cWindow;
// tolua_begin
class cPluginLua :
- public cPlugin,
- public cWebPlugin
+ public cPlugin
{
typedef cPlugin super;
@@ -181,14 +179,6 @@ public:
/** Returns true if the plugin contains the function for the specified hook type, using the old-style registration (#121) */
bool CanAddOldStyleHook(int a_HookType);
- // cWebPlugin overrides
- virtual const AString GetWebTitle(void) const override {return GetName(); }
- virtual AString HandleWebRequest(const HTTPRequest & a_Request) override;
-
- /** Adds a new web tab to webadmin.
- Displaying the tab calls the referenced function. */
- bool AddWebTab(const AString & a_Title, lua_State * a_LuaState, int a_FunctionReference); // Exported in ManualBindings.cpp
-
/** Binds the command to call the function specified by a Lua function reference. Simply adds to CommandMap. */
void BindCommand(const AString & a_Command, int a_FnRef);
@@ -270,6 +260,9 @@ protected:
/** Releases all Lua references, notifies and removes all m_Resettables[] and closes the m_LuaState. */
void Close(void);
+
+ /** Removes all WebTabs currently registered for this plugin from the WebAdmin. */
+ void ClearWebTabs(void);
} ; // tolua_export