Updated Lua Entity (markdown)

Alex 2013-06-07 14:58:16 -07:00
parent 49eff25bdd
commit 001e2ebdc1

@ -2,29 +2,30 @@ Lua_Entity is a class exported to Lua that represent the Entity object from EQEm
### Properties
```
entity.null - Returns true if this object is null
entity.valid - Returns true if this object is not null
entity.null -- Returns true if this object is null
entity.valid -- Returns true if this object is not null
```
### Member Functions
```
Entity() - Creates a null entity
bool IsClient()
bool IsNPC()
bool IsMob()
bool IsMerc()
bool IsCorpse()
bool IsPlayerCorpse()
bool IsNPCCorpse()
bool IsObject()
bool IsDoor()
bool IsTrap()
bool IsBeacon()
int GetID()
Lua_Client CastToClient()
Lua_NPC CastToNPC()
Lua_Mob CastToMob()
Lua_Corpse CastToCorpse()
Lua_Object CastToObject()
Lua_Door CastToDoor()
Entity(); -- Creates a null entity
bool IsClient();
bool IsNPC();
bool IsMob();
bool IsMerc();
bool IsCorpse();
bool IsPlayerCorpse();
bool IsNPCCorpse();
bool IsObject();
bool IsDoor();
bool IsTrap();
bool IsBeacon();
int GetID();
Lua_Client CastToClient();
Lua_NPC CastToNPC();
Lua_Mob CastToMob();
Lua_Corpse CastToCorpse();
Lua_Object CastToObject();
Lua_Door CastToDoor();
```