mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Lua work on api - entity and mob, lots more to go
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include "masterentity.h"
|
||||
#include "lua_entity.h"
|
||||
#include "lua_mob.h"
|
||||
#include "lua_client.h"
|
||||
#include "lua_npc.h"
|
||||
|
||||
bool Lua_Entity::IsClient() {
|
||||
Entity *ent = reinterpret_cast<Entity*>(d_);
|
||||
@@ -64,6 +66,16 @@ int Lua_Entity::GetID() {
|
||||
return ent->GetID();
|
||||
}
|
||||
|
||||
Lua_Client Lua_Entity::CastToClient() {
|
||||
Client *m = reinterpret_cast<Client*>(d_);
|
||||
return Lua_Client(m);
|
||||
}
|
||||
|
||||
Lua_NPC Lua_Entity::CastToNPC() {
|
||||
NPC *m = reinterpret_cast<NPC*>(d_);
|
||||
return Lua_NPC(m);
|
||||
}
|
||||
|
||||
Lua_Mob Lua_Entity::CastToMob() {
|
||||
Mob *m = reinterpret_cast<Mob*>(d_);
|
||||
return Lua_Mob(m);
|
||||
|
||||
Reference in New Issue
Block a user