mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 20:56:37 +00:00
Working on last of Mob:: that can be implemented atm, added safety checks to the lua functions that will be optional later in dev mode. Also changed quest return types to integers instead of doubles as that was non-intuitive
This commit is contained in:
@@ -12,6 +12,14 @@ public:
|
||||
Lua_Client() { d_ = nullptr; }
|
||||
Lua_Client(Client *d) { d_ = d; }
|
||||
virtual ~Lua_Client() { }
|
||||
|
||||
operator Client* () {
|
||||
if(d_) {
|
||||
return reinterpret_cast<Client*>(d_);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user