summaryrefslogtreecommitdiffstats
path: root/source/PluginManager.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-08 20:09:35 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-08 20:09:35 +0100
commitf7ef93611cb2429ec3f1f5f77befcd1b5647be37 (patch)
tree37a4899bac07800f753c89d44c115b9f570455ed /source/PluginManager.h
parentHotfix for ThuGie's crash, with a sanity check in debug mode. (diff)
downloadcuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar
cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.gz
cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.bz2
cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.lz
cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.xz
cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.zst
cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.zip
Diffstat (limited to '')
-rw-r--r--source/PluginManager.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/source/PluginManager.h b/source/PluginManager.h
index 8fc74c90c..ebbd0ca89 100644
--- a/source/PluginManager.h
+++ b/source/PluginManager.h
@@ -5,7 +5,11 @@
struct lua_State;
class cLuaCommandBinder;
-class cSquirrelCommandBinder;
+
+#ifdef USE_SQUIRREL
+ class cSquirrelCommandBinder;
+#endif // USE_SQUIRREL
+
class cPlugin;
// fwd: cWorld.h
@@ -124,11 +128,16 @@ public: //tolua_export
cLuaCommandBinder* GetLuaCommandBinder() const { return m_LuaCommandBinder; }
- cSquirrelCommandBinder* GetSquirrelCommandBinder() { return m_SquirrelCommandBinder; }
+ #ifdef USE_SQUIRREL
+ cSquirrelCommandBinder * GetSquirrelCommandBinder() { return m_SquirrelCommandBinder; }
+ #endif // USE_SQUIRREL
bool HasPlugin( cPlugin* a_Plugin ) const;
+
private:
+
friend class cRoot;
+
cPluginManager();
~cPluginManager();
@@ -142,8 +151,15 @@ private:
void ReloadPluginsNow();
void UnloadPluginsNow();
- cLuaCommandBinder* m_LuaCommandBinder;
- cSquirrelCommandBinder* m_SquirrelCommandBinder;
+ cLuaCommandBinder * m_LuaCommandBinder;
+
+ #ifdef USE_SQUIRREL
+ cSquirrelCommandBinder * m_SquirrelCommandBinder;
+ #endif // USE_SQUIRREL
bool m_bReloadPlugins;
}; //tolua_export
+
+
+
+