mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
Cleaned up lua glue macro a bit
This commit is contained in:
+4
-3
@@ -8,14 +8,15 @@ class Client;
|
||||
|
||||
class Lua_Client : public Lua_Mob
|
||||
{
|
||||
typedef Client NativeType;
|
||||
public:
|
||||
Lua_Client() { d_ = nullptr; }
|
||||
Lua_Client(Client *d) { d_ = d; }
|
||||
Lua_Client(NativeType *d) { d_ = d; }
|
||||
virtual ~Lua_Client() { }
|
||||
|
||||
operator Client* () {
|
||||
operator NativeType* () {
|
||||
if(d_) {
|
||||
return reinterpret_cast<Client*>(d_);
|
||||
return reinterpret_cast<NativeType*>(d_);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user