mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 09:37:55 +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_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
|
||||
Reference in New Issue
Block a user