mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-01 20:42:17 +00:00
more lua, gonna work on single interpreter soon
This commit is contained in:
1 parent
38521e0009
commit
3cc1065873
13 files changed
+387
-125
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in new issue
Block a user