mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
feat(GameObject): GetSpawnId method (#304)
This commit is contained in:
@@ -941,7 +941,7 @@ ElunaRegister<GameObject> GameObjectMethods[] =
|
|||||||
{ "GetLootState", &LuaGameObject::GetLootState },
|
{ "GetLootState", &LuaGameObject::GetLootState },
|
||||||
{ "GetLootRecipient", &LuaGameObject::GetLootRecipient },
|
{ "GetLootRecipient", &LuaGameObject::GetLootRecipient },
|
||||||
{ "GetLootRecipientGroup", &LuaGameObject::GetLootRecipientGroup },
|
{ "GetLootRecipientGroup", &LuaGameObject::GetLootRecipientGroup },
|
||||||
{ "GetDBTableGUIDLow", &LuaGameObject::GetDBTableGUIDLow },
|
{ "GetSpawnId", &LuaGameObject::GetSpawnId },
|
||||||
|
|
||||||
// Setters
|
// Setters
|
||||||
{ "SetGoState", &LuaGameObject::SetGoState },
|
{ "SetGoState", &LuaGameObject::SetGoState },
|
||||||
|
|||||||
@@ -146,11 +146,11 @@ namespace LuaGameObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the guid of the [GameObject] that is used as the ID in the database
|
* Returns the spawn ID for this [GameObject].
|
||||||
*
|
*
|
||||||
* @return uint32 dbguid
|
* @return uint32 spawnId
|
||||||
*/
|
*/
|
||||||
int GetDBTableGUIDLow(lua_State* L, GameObject* go)
|
int GetSpawnId(lua_State* L, GameObject* go)
|
||||||
{
|
{
|
||||||
Eluna::Push(L, go->GetSpawnId());
|
Eluna::Push(L, go->GetSpawnId());
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user