mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-16 15:13:55 +00:00
35 lines
494 B
C++
35 lines
494 B
C++
#ifndef EQEMU_LUA_CORPSE_H
|
|
#define EQEMU_LUA_CORPSE_H
|
|
#ifdef LUA_EQEMU
|
|
|
|
#include "lua_mob.h"
|
|
|
|
class Corpse;
|
|
|
|
namespace luabind {
|
|
struct scope;
|
|
}
|
|
|
|
luabind::scope lua_register_corpse();
|
|
|
|
class Lua_Corpse : public Lua_Mob
|
|
{
|
|
typedef Corpse NativeType;
|
|
public:
|
|
Lua_Corpse() { }
|
|
Lua_Corpse(Corpse *d) { SetLuaPtrData(d); }
|
|
virtual ~Lua_Corpse() { }
|
|
|
|
operator Corpse*() {
|
|
void *d = GetLuaPtrData();
|
|
if(d) {
|
|
return reinterpret_cast<Corpse*>(d);
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
};
|
|
|
|
#endif
|
|
#endif
|