chore: rename Eluna to ALE (#318)

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
Foe
2025-10-23 12:53:30 +02:00
committed by GitHub
parent c35416fa36
commit 81d3f02679
77 changed files with 3605 additions and 3605 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2010 - 2016 Eluna Lua Engine <http://emudevs.com/>
* Copyright (C) 2010 - 2025 Eluna Lua Engine <https://elunaluaengine.github.io/>
* This program is free software licensed under GPL version 3
* Please see the included DOCS/LICENSE.md for more information
*/
@@ -22,9 +22,9 @@ namespace LuaGameObject
*/
int HasQuest(lua_State* L, GameObject* go)
{
uint32 questId = Eluna::CHECKVAL<uint32>(L, 2);
uint32 questId = ALE::CHECKVAL<uint32>(L, 2);
Eluna::Push(L, go->hasQuest(questId));
ALE::Push(L, go->hasQuest(questId));
return 1;
}
@@ -35,7 +35,7 @@ namespace LuaGameObject
*/
int IsSpawned(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->isSpawned());
ALE::Push(L, go->isSpawned());
return 1;
}
@@ -46,7 +46,7 @@ namespace LuaGameObject
*/
int IsTransport(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->IsTransport());
ALE::Push(L, go->IsTransport());
return 1;
}
@@ -57,13 +57,13 @@ namespace LuaGameObject
*/
int IsActive(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->isActiveObject());
ALE::Push(L, go->isActiveObject());
return 1;
}
/*int IsDestructible(lua_State* L, GameObject* go) // TODO: Implementation core side
{
Eluna::Push(L, go->IsDestructibleBuilding());
ALE::Push(L, go->IsDestructibleBuilding());
return 1;
}*/
@@ -74,7 +74,7 @@ namespace LuaGameObject
*/
int GetDisplayId(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->GetDisplayId());
ALE::Push(L, go->GetDisplayId());
return 1;
}
@@ -95,7 +95,7 @@ namespace LuaGameObject
*/
int GetGoState(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->GetGoState());
ALE::Push(L, go->GetGoState());
return 1;
}
@@ -117,7 +117,7 @@ namespace LuaGameObject
*/
int GetLootState(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->getLootState());
ALE::Push(L, go->getLootState());
return 1;
}
@@ -130,7 +130,7 @@ namespace LuaGameObject
*/
int GetLootRecipient(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->GetLootRecipient());
ALE::Push(L, go->GetLootRecipient());
return 1;
}
@@ -143,7 +143,7 @@ namespace LuaGameObject
*/
int GetLootRecipientGroup(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->GetLootRecipientGroup());
ALE::Push(L, go->GetLootRecipientGroup());
return 1;
}
@@ -154,7 +154,7 @@ namespace LuaGameObject
*/
int GetSpawnId(lua_State* L, GameObject* go)
{
Eluna::Push(L, go->GetSpawnId());
ALE::Push(L, go->GetSpawnId());
return 1;
}
@@ -174,7 +174,7 @@ namespace LuaGameObject
*/
int SetGoState(lua_State* L, GameObject* go)
{
uint32 state = Eluna::CHECKVAL<uint32>(L, 2, 0);
uint32 state = ALE::CHECKVAL<uint32>(L, 2, 0);
if (state == 0)
go->SetGoState(GO_STATE_ACTIVE);
@@ -204,7 +204,7 @@ namespace LuaGameObject
*/
int SetLootState(lua_State* L, GameObject* go)
{
uint32 state = Eluna::CHECKVAL<uint32>(L, 2, 0);
uint32 state = ALE::CHECKVAL<uint32>(L, 2, 0);
if (state == 0)
go->SetLootState(GO_NOT_READY);
@@ -236,8 +236,8 @@ namespace LuaGameObject
uint8 addedItems = 0;
while (i + 2 <= argAmount)
{
uint32 entry = Eluna::CHECKVAL<uint32>(L, ++i);
uint32 amount = Eluna::CHECKVAL<uint32>(L, ++i);
uint32 entry = ALE::CHECKVAL<uint32>(L, ++i);
uint32 amount = ALE::CHECKVAL<uint32>(L, ++i);
ItemTemplate const* item_proto = eObjectMgr->GetItemTemplate(entry);
if (!item_proto)
@@ -255,7 +255,7 @@ namespace LuaGameObject
item->SaveToDB(trans);
LootStoreItem storeItem(item->GetEntry(), 0, 100, 0, LOOT_MODE_DEFAULT, 0, item->GetCount(), item->GetCount());
go->loot.AddItem(storeItem);
Eluna::Push(L, item->GetGUID().GetCounter());
ALE::Push(L, item->GetGUID().GetCounter());
++addedItems;
}
}
@@ -284,7 +284,7 @@ namespace LuaGameObject
*/
int RemoveFromWorld(lua_State* L, GameObject* go)
{
bool deldb = Eluna::CHECKVAL<bool>(L, 2, false);
bool deldb = ALE::CHECKVAL<bool>(L, 2, false);
// cs_gobject.cpp copy paste
ObjectGuid ownerGuid = go->GetOwnerGUID();
@@ -303,7 +303,7 @@ namespace LuaGameObject
go->SetRespawnTime(0);
go->Delete();
Eluna::CHECKOBJ<ElunaObject>(L, 1)->Invalidate();
ALE::CHECKOBJ<ALEObject>(L, 1)->Invalidate();
return 0;
}
@@ -314,7 +314,7 @@ namespace LuaGameObject
*/
int UseDoorOrButton(lua_State* L, GameObject* go)
{
uint32 delay = Eluna::CHECKVAL<uint32>(L, 2, 0);
uint32 delay = ALE::CHECKVAL<uint32>(L, 2, 0);
go->UseDoorOrButton(delay);
return 0;
@@ -349,7 +349,7 @@ namespace LuaGameObject
*/
int SetRespawnTime(lua_State* L, GameObject* go)
{
int32 respawn = Eluna::CHECKVAL<int32>(L, 2);
int32 respawn = ALE::CHECKVAL<int32>(L, 2);
go->SetRespawnTime(respawn);
return 0;
@@ -364,7 +364,7 @@ namespace LuaGameObject
*/
int SetRespawnDelay(lua_State* L, GameObject* go)
{
int32 respawn = Eluna::CHECKVAL<int32>(L, 2);
int32 respawn = ALE::CHECKVAL<int32>(L, 2);
go->SetRespawnDelay(respawn);
return 0;