summaryrefslogtreecommitdiffstats
path: root/source/Plugin_Lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Plugin_Lua.h')
-rw-r--r--source/Plugin_Lua.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/source/Plugin_Lua.h b/source/Plugin_Lua.h
new file mode 100644
index 000000000..73787de0c
--- /dev/null
+++ b/source/Plugin_Lua.h
@@ -0,0 +1,38 @@
+
+#pragma once
+
+class cPickup;
+class cPlayer;
+class cPlugin;
+
+
+
+
+
+class cPlugin_Lua //tolua_export
+{ //tolua_export
+public:
+ cPlugin_Lua(const char* a_Plugin);
+ ~cPlugin_Lua();
+
+ virtual bool Initialize();
+
+ std::string GetFileName() { return m_FileName; } //tolua_export
+ typedef struct lua_State lua_State;
+ lua_State* GetLuaState();
+
+ void AddPlugin( cPlugin* a_Plugin );
+ void RemovePlugin( cPlugin* a_Plugin );
+private:
+ void UnloadPlugins();
+
+ std::string m_FileName;
+ lua_State* m_LuaState;
+
+ typedef std::list< cPlugin* > PluginList;
+ PluginList m_Plugins;
+}; //tolua_export
+
+
+
+