4e34e438f1
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
20 lines
465 B
C++
20 lines
465 B
C++
#pragma once
|
|
|
|
#include "cPlugin.h"
|
|
#include <string>
|
|
|
|
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
|