Added all lua objects i need for now, a ton of API too

This commit is contained in:
KimLS
2013-06-02 00:15:26 -07:00
parent a1080fdb2d
commit d14608356d
31 changed files with 2376 additions and 370 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef EQEMU_LUA_GROUP_H
#define EQEMU_LUA_GROUP_H
#ifdef LUA_EQEMU
#include "lua_ptr.h"
class Group;
namespace luabind {
struct scope;
}
luabind::scope lua_register_group();
class Lua_Group : public Lua_Ptr<void>
{
typedef Group NativeType;
public:
Lua_Group() { }
Lua_Group(Group *d) : Lua_Ptr(d) { }
virtual ~Lua_Group() { }
operator Group*() {
void *d = GetLuaPtrData();
if(d) {
return reinterpret_cast<Group*>(d);
}
return nullptr;
}
};
#endif
#endif