feat(GameObject): GetSpawnId method (#304)

This commit is contained in:
Aldori
2025-08-30 09:46:35 -04:00
committed by GitHub
parent 6d1ff128a6
commit 4acc340bf5
2 changed files with 6 additions and 6 deletions

View File

@@ -941,7 +941,7 @@ ElunaRegister<GameObject> GameObjectMethods[] =
{ "GetLootState", &LuaGameObject::GetLootState },
{ "GetLootRecipient", &LuaGameObject::GetLootRecipient },
{ "GetLootRecipientGroup", &LuaGameObject::GetLootRecipientGroup },
{ "GetDBTableGUIDLow", &LuaGameObject::GetDBTableGUIDLow },
{ "GetSpawnId", &LuaGameObject::GetSpawnId },
// Setters
{ "SetGoState", &LuaGameObject::SetGoState },

View File

@@ -146,11 +146,11 @@ namespace LuaGameObject
}
/**
* Returns the guid of the [GameObject] that is used as the ID in the database
*
* @return uint32 dbguid
*/
int GetDBTableGUIDLow(lua_State* L, GameObject* go)
* Returns the spawn ID for this [GameObject].
*
* @return uint32 spawnId
*/
int GetSpawnId(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->GetSpawnId());
return 1;