From 4acc340bf51cbc6999839bbe7d68fb6338e911e9 Mon Sep 17 00:00:00 2001 From: Aldori Date: Sat, 30 Aug 2025 09:46:35 -0400 Subject: [PATCH] feat(GameObject): GetSpawnId method (#304) --- src/LuaEngine/LuaFunctions.cpp | 2 +- src/LuaEngine/methods/GameObjectMethods.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/LuaEngine/LuaFunctions.cpp b/src/LuaEngine/LuaFunctions.cpp index c498d45..f5f3359 100644 --- a/src/LuaEngine/LuaFunctions.cpp +++ b/src/LuaEngine/LuaFunctions.cpp @@ -941,7 +941,7 @@ ElunaRegister GameObjectMethods[] = { "GetLootState", &LuaGameObject::GetLootState }, { "GetLootRecipient", &LuaGameObject::GetLootRecipient }, { "GetLootRecipientGroup", &LuaGameObject::GetLootRecipientGroup }, - { "GetDBTableGUIDLow", &LuaGameObject::GetDBTableGUIDLow }, + { "GetSpawnId", &LuaGameObject::GetSpawnId }, // Setters { "SetGoState", &LuaGameObject::SetGoState }, diff --git a/src/LuaEngine/methods/GameObjectMethods.h b/src/LuaEngine/methods/GameObjectMethods.h index f55e1ae..513a92b 100644 --- a/src/LuaEngine/methods/GameObjectMethods.h +++ b/src/LuaEngine/methods/GameObjectMethods.h @@ -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;