mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
35 lines
481 B
C++
35 lines
481 B
C++
#ifndef EQEMU_LUA_DOOR_H
|
|
#define EQEMU_LUA_DOOR_H
|
|
#ifdef LUA_EQEMU
|
|
|
|
#include "lua_entity.h"
|
|
|
|
class Doors;
|
|
|
|
namespace luabind {
|
|
struct scope;
|
|
}
|
|
|
|
luabind::scope lua_register_door();
|
|
|
|
class Lua_Door : public Lua_Entity
|
|
{
|
|
typedef Doors NativeType;
|
|
public:
|
|
Lua_Door() { }
|
|
Lua_Door(Doors *d) { SetLuaPtrData(d); }
|
|
virtual ~Lua_Door() { }
|
|
|
|
operator Doors*() {
|
|
void *d = GetLuaPtrData();
|
|
if(d) {
|
|
return reinterpret_cast<Doors*>(d);
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
};
|
|
|
|
#endif
|
|
#endif
|