From 4e34e438f12abb31f2409ce9d50df8acc2128555 Mon Sep 17 00:00:00 2001 From: faketruth Date: Thu, 26 Jan 2012 20:39:46 +0000 Subject: Working on a new plugin design with Lua. While retaining backwards compatibility of course... In this new design a plugin consists of a folder with Lua files, this should enable plugin developers to keep things separate and have more overview. git-svn-id: http://mc-server.googlecode.com/svn/trunk@172 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin_NewLua.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 source/cPlugin_NewLua.h (limited to 'source/cPlugin_NewLua.h') diff --git a/source/cPlugin_NewLua.h b/source/cPlugin_NewLua.h new file mode 100644 index 000000000..418865879 --- /dev/null +++ b/source/cPlugin_NewLua.h @@ -0,0 +1,20 @@ +#pragma once + +#include "cPlugin.h" +#include + +typedef struct lua_State lua_State; + +class cPlugin_NewLua : public cPlugin //tolua_export +{ //tolua_export +public: //tolua_export + cPlugin_NewLua( const char* a_PluginName ); + ~cPlugin_NewLua(); + + virtual bool Initialize(); //tolua_export + virtual void Tick(float a_Dt); //tolua_export + +private: + std::string m_Directory; + lua_State* m_LuaState; +};//tolua_export \ No newline at end of file -- cgit v1.2.3