mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
30 lines
366 B
C++
30 lines
366 B
C++
#ifndef EQEMU_LUA_ITEM_H
|
|
#define EQEMU_LUA_ITEM_H
|
|
#ifdef LUA_EQEMU
|
|
|
|
class ItemInst;
|
|
|
|
class Lua_Item
|
|
{
|
|
public:
|
|
Lua_Item() { d_ = nullptr; }
|
|
Lua_Item(ItemInst *d) { d_ = d; }
|
|
virtual ~Lua_Item() { }
|
|
|
|
operator ItemInst* () {
|
|
if(d_) {
|
|
return reinterpret_cast<ItemInst*>(d_);
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
|
|
bool Null();
|
|
bool Valid();
|
|
|
|
void *d_;
|
|
};
|
|
|
|
#endif
|
|
#endif
|