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 }, { "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 },

View File

@@ -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;