mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
26 lines
336 B
C++
26 lines
336 B
C++
#ifndef EQEMU_LUA_NPC_H
|
|
#define EQEMU_LUA_NPC_H
|
|
#ifdef LUA_EQEMU
|
|
|
|
#include "lua_mob.h"
|
|
|
|
class NPC;
|
|
|
|
class Lua_NPC : public Lua_Mob
|
|
{
|
|
public:
|
|
Lua_NPC() { d_ = nullptr; }
|
|
Lua_NPC(NPC *d) { d_ = d; }
|
|
virtual ~Lua_NPC() { }
|
|
|
|
operator NPC* () {
|
|
if(d_) {
|
|
return reinterpret_cast<NPC*>(d_);
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
};
|
|
|
|
#endif
|
|
#endif |