2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class cPickup;
|
|
|
|
class cPlayer;
|
|
|
|
class cPlugin;
|
2012-08-29 17:02:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
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;
|
2012-08-29 17:02:39 -04:00
|
|
|
}; //tolua_export
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|