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 },
|
||||
{ "GetLootRecipient", &LuaGameObject::GetLootRecipient },
|
||||
{ "GetLootRecipientGroup", &LuaGameObject::GetLootRecipientGroup },
|
||||
{ "GetDBTableGUIDLow", &LuaGameObject::GetDBTableGUIDLow },
|
||||
{ "GetSpawnId", &LuaGameObject::GetSpawnId },
|
||||
|
||||
// Setters
|
||||
{ "SetGoState", &LuaGameObject::SetGoState },
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user