Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LuaGameObject Namespace Reference

Functions

int Despawn (lua_State *L, GameObject *go)
int GetDisplayId (lua_State *L, GameObject *go)
int GetGoState (lua_State *L, GameObject *go)
int GetLootState (lua_State *L, GameObject *go)
int GetRelativePoint (lua_State *L, GameObject *go)
int HasQuest (lua_State *L, GameObject *go)
int IsActive (lua_State *L, GameObject *go)
int IsDestructible (lua_State *L, GameObject *go)
int IsSpawned (lua_State *L, GameObject *go)
int IsTransport (lua_State *L, GameObject *go)
int Move (lua_State *L, GameObject *go)
int RegisterEvent (lua_State *L, GameObject *go)
int RemoveEventById (lua_State *L, GameObject *go)
int RemoveEvents (lua_State *L, GameObject *go)
int RemoveFromWorld (lua_State *L, GameObject *go)
int Respawn (lua_State *L, GameObject *go)
int SaveToDB (lua_State *L, GameObject *go)
int SetGoState (lua_State *L, GameObject *go)
int SetLootState (lua_State *L, GameObject *go)
int SummonCreature (lua_State *L, GameObject *go)
int SummonGameObject (lua_State *L, GameObject *go)
int UseDoorOrButton (lua_State *L, GameObject *go)

Function Documentation

◆ Despawn()

int LuaGameObject::Despawn ( lua_State * L,
GameObject * go )

◆ GetDisplayId()

int LuaGameObject::GetDisplayId ( lua_State * L,
GameObject * go )

Definition at line 80 of file GameObjectMethods.cpp.

References GameObject::GetDisplayId(), and sEluna.

◆ GetGoState()

int LuaGameObject::GetGoState ( lua_State * L,
GameObject * go )

Definition at line 190 of file GameObjectMethods.cpp.

References GameObject::GetGoState(), Object::IsInWorld(), and sEluna.

◆ GetLootState()

int LuaGameObject::GetLootState ( lua_State * L,
GameObject * go )

Definition at line 215 of file GameObjectMethods.cpp.

References GameObject::getLootState(), and sEluna.

◆ GetRelativePoint()

int LuaGameObject::GetRelativePoint ( lua_State * L,
GameObject * go )

◆ HasQuest()

int LuaGameObject::HasQuest ( lua_State * L,
GameObject * go )

Definition at line 86 of file GameObjectMethods.cpp.

References GameObject::hasQuest(), and sEluna.

◆ IsActive()

int LuaGameObject::IsActive ( lua_State * L,
GameObject * go )

Definition at line 112 of file GameObjectMethods.cpp.

References WorldObject::isActiveObject(), and sEluna.

◆ IsDestructible()

int LuaGameObject::IsDestructible ( lua_State * L,
GameObject * go )

Definition at line 106 of file GameObjectMethods.cpp.

References GameObject::IsDestructibleBuilding(), and sEluna.

◆ IsSpawned()

int LuaGameObject::IsSpawned ( lua_State * L,
GameObject * go )

Definition at line 94 of file GameObjectMethods.cpp.

References GameObject::isSpawned(), and sEluna.

◆ IsTransport()

int LuaGameObject::IsTransport ( lua_State * L,
GameObject * go )

Definition at line 100 of file GameObjectMethods.cpp.

References GameObject::IsTransport(), and sEluna.

◆ Move()

int LuaGameObject::Move ( lua_State * L,
GameObject * go )

Definition at line 118 of file GameObjectMethods.cpp.

References Position::Relocate().

◆ RegisterEvent()

int LuaGameObject::RegisterEvent ( lua_State * L,
GameObject * go )

Definition at line 143 of file GameObjectMethods.cpp.

References Object::GetGUID(), and sEluna.

◆ RemoveEventById()

int LuaGameObject::RemoveEventById ( lua_State * L,
GameObject * go )

Definition at line 155 of file GameObjectMethods.cpp.

References Object::GetGUID(), and sEluna.

◆ RemoveEvents()

int LuaGameObject::RemoveEvents ( lua_State * L,
GameObject * go )

Definition at line 162 of file GameObjectMethods.cpp.

References Object::GetGUID(), and sEluna.

◆ RemoveFromWorld()

int LuaGameObject::RemoveFromWorld ( lua_State * L,
GameObject * go )

◆ Respawn()

int LuaGameObject::Respawn ( lua_State * L,
GameObject * go )

◆ SaveToDB()

int LuaGameObject::SaveToDB ( lua_State * L,
GameObject * go )

Definition at line 128 of file GameObjectMethods.cpp.

References GameObject::SaveToDB().

◆ SetGoState()

int LuaGameObject::SetGoState ( lua_State * L,
GameObject * go )

◆ SetLootState()

int LuaGameObject::SetLootState ( lua_State * L,
GameObject * go )

◆ SummonCreature()

◆ SummonGameObject()

int LuaGameObject::SummonGameObject ( lua_State * L,
GameObject * go )

Definition at line 68 of file GameObjectMethods.cpp.

References sEluna, and WorldObject::SummonGameObject().

◆ UseDoorOrButton()

int LuaGameObject::UseDoorOrButton ( lua_State * L,
GameObject * go )

Definition at line 168 of file GameObjectMethods.cpp.

References GameObject::UseDoorOrButton().