summaryrefslogtreecommitdiffstats
path: root/source/cPlugin_NewLua.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-23 22:49:21 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-23 22:49:21 +0200
commit263ce31bd6b80d0cdb33232ce09a81c14d6a0e95 (patch)
treef3fd398d798e51a12b47d6758ae23de74f438e17 /source/cPlugin_NewLua.h
parentFixed Bug #237 (diff)
downloadcuberite-263ce31bd6b80d0cdb33232ce09a81c14d6a0e95.tar
cuberite-263ce31bd6b80d0cdb33232ce09a81c14d6a0e95.tar.gz
cuberite-263ce31bd6b80d0cdb33232ce09a81c14d6a0e95.tar.bz2
cuberite-263ce31bd6b80d0cdb33232ce09a81c14d6a0e95.tar.lz
cuberite-263ce31bd6b80d0cdb33232ce09a81c14d6a0e95.tar.xz
cuberite-263ce31bd6b80d0cdb33232ce09a81c14d6a0e95.tar.zst
cuberite-263ce31bd6b80d0cdb33232ce09a81c14d6a0e95.zip
Diffstat (limited to 'source/cPlugin_NewLua.h')
-rw-r--r--source/cPlugin_NewLua.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/source/cPlugin_NewLua.h b/source/cPlugin_NewLua.h
index a2eddf89b..7ae38c1e5 100644
--- a/source/cPlugin_NewLua.h
+++ b/source/cPlugin_NewLua.h
@@ -46,18 +46,23 @@ public: //tolua_export
virtual bool OnUpdatingSign (cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, AString & a_Line1, AString & a_Line2, AString & a_Line3, AString & a_Line4) override;
virtual bool OnWeatherChanged (cWorld * a_World) override;
- virtual void SetName( const AString & a_Name ) override { cPlugin::SetName(a_Name); cWebPlugin::SetName(a_Name); }
+ const AString & GetDirectory(void) const {return m_Directory; }
+
+ virtual void SetName( const AString & a_Name ) override { cPlugin::SetName(a_Name); }
+
+ // cWebPlugin override
+ virtual const AString & GetName(void) const {return cPlugin::GetName(); }
// cWebPlugin and WebAdmin stuff
virtual AString HandleWebRequest( HTTPRequest * a_Request ) override;
bool AddWebTab( const AString & a_Title, lua_State * a_LuaState, int a_FunctionReference ); // >> EXPORTED IN MANUALBINDINGS <<
- OBSOLETE bool AddTab( const AString & a_Title, lua_State * a_LuaState, int a_FunctionReference ); // >> EXPORTED IN MANUALBINDINGS <<
lua_State* GetLuaState() { return m_LuaState; }
- OBSOLETE cPlugin_NewLua * CreateWebPlugin(lua_State* a_LuaState); //tolua_export
+ OBSOLETE cPlugin_NewLua * CreateWebPlugin(lua_State * a_LuaState); //tolua_export
cCriticalSection & GetCriticalSection() { return m_CriticalSection; }
+
private:
bool PushFunction( const char* a_FunctionName, bool a_bLogError = true );
bool CallFunction( int a_NumArgs, int a_NumResults, const char* a_FunctionName ); // a_FunctionName is only used for error messages, nothing else
@@ -65,5 +70,5 @@ private:
cCriticalSection m_CriticalSection;
std::string m_Directory;
- lua_State* m_LuaState;
+ lua_State * m_LuaState;
};//tolua_export \ No newline at end of file