mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
Added all lua objects i need for now, a ton of API too
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef EQEMU_LUA_RAID_H
|
||||
#define EQEMU_LUA_RAID_H
|
||||
#ifdef LUA_EQEMU
|
||||
|
||||
#include "lua_ptr.h"
|
||||
|
||||
class Raid;
|
||||
|
||||
namespace luabind {
|
||||
struct scope;
|
||||
}
|
||||
|
||||
luabind::scope lua_register_raid();
|
||||
|
||||
class Lua_Raid : public Lua_Ptr<void>
|
||||
{
|
||||
typedef Raid NativeType;
|
||||
public:
|
||||
Lua_Raid() { }
|
||||
Lua_Raid(Raid *d) : Lua_Ptr(d) { }
|
||||
virtual ~Lua_Raid() { }
|
||||
|
||||
operator Raid*() {
|
||||
void *d = GetLuaPtrData();
|
||||
if(d) {
|
||||
return reinterpret_cast<Raid*>(d);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user