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
*/
@@ -9,12 +9,12 @@ extern "C"
#include "lua.h"
};
// Eluna
// ALE
#include "LuaEngine.h"
#include "ElunaEventMgr.h"
#include "ElunaIncludes.h"
#include "ElunaTemplate.h"
#include "ElunaUtility.h"
#include "ALEEventMgr.h"
#include "ALEIncludes.h"
#include "ALETemplate.h"
#include "ALEUtility.h"
// Method includes
#include "GlobalMethods.h"
@@ -26,7 +26,7 @@ extern "C"
#include "GroupMethods.h"
#include "GuildMethods.h"
#include "GameObjectMethods.h"
#include "ElunaQueryMethods.h"
#include "ALEQueryMethods.h"
#include "AuraMethods.h"
#include "ItemMethods.h"
#include "WorldPacketMethods.h"
@@ -149,7 +149,7 @@ luaL_Reg GlobalMethods[] =
{ "IsGameEventActive", &LuaGlobalFunctions::IsGameEventActive },
// Other
{ "ReloadEluna", &LuaGlobalFunctions::ReloadEluna },
{ "ReloadALE", &LuaGlobalFunctions::ReloadALE },
{ "RunCommand", &LuaGlobalFunctions::RunCommand },
{ "SendWorldMessage", &LuaGlobalFunctions::SendWorldMessage },
{ "WorldDBQuery", &LuaGlobalFunctions::WorldDBQuery },
@@ -185,7 +185,7 @@ luaL_Reg GlobalMethods[] =
{ NULL, NULL }
};
ElunaRegister<Object> ObjectMethods[] =
ALERegister<Object> ObjectMethods[] =
{
// Getters
{ "GetEntry", &LuaObject::GetEntry },
@@ -228,7 +228,7 @@ ElunaRegister<Object> ObjectMethods[] =
{ NULL, NULL }
};
ElunaRegister<WorldObject> WorldObjectMethods[] =
ALERegister<WorldObject> WorldObjectMethods[] =
{
// Getters
{ "GetName", &LuaWorldObject::GetName },
@@ -286,7 +286,7 @@ ElunaRegister<WorldObject> WorldObjectMethods[] =
{ NULL, NULL }
};
ElunaRegister<Unit> UnitMethods[] =
ALERegister<Unit> UnitMethods[] =
{
// Getters
{ "GetLevel", &LuaUnit::GetLevel },
@@ -473,7 +473,7 @@ ElunaRegister<Unit> UnitMethods[] =
{ NULL, NULL }
};
ElunaRegister<Player> PlayerMethods[] =
ALERegister<Player> PlayerMethods[] =
{
// Getters
{ "GetSelection", &LuaPlayer::GetSelection },
@@ -833,7 +833,7 @@ ElunaRegister<Player> PlayerMethods[] =
{ NULL, NULL }
};
ElunaRegister<Creature> CreatureMethods[] =
ALERegister<Creature> CreatureMethods[] =
{
// Getters
{ "GetAITarget", &LuaCreature::GetAITarget },
@@ -937,7 +937,7 @@ ElunaRegister<Creature> CreatureMethods[] =
{ NULL, NULL }
};
ElunaRegister<GameObject> GameObjectMethods[] =
ALERegister<GameObject> GameObjectMethods[] =
{
// Getters
{ "GetDisplayId", &LuaGameObject::GetDisplayId },
@@ -971,7 +971,7 @@ ElunaRegister<GameObject> GameObjectMethods[] =
{ NULL, NULL }
};
ElunaRegister<Item> ItemMethods[] =
ALERegister<Item> ItemMethods[] =
{
// Getters
{ "GetOwnerGUID", &LuaItem::GetOwnerGUID },
@@ -1040,7 +1040,7 @@ ElunaRegister<Item> ItemMethods[] =
{ NULL, NULL }
};
ElunaRegister<ItemTemplate> ItemTemplateMethods[] =
ALERegister<ItemTemplate> ItemTemplateMethods[] =
{
{ "GetItemId", &LuaItemTemplate::GetItemId },
{ "GetClass", &LuaItemTemplate::GetClass },
@@ -1062,7 +1062,7 @@ ElunaRegister<ItemTemplate> ItemTemplateMethods[] =
{ NULL, NULL }
};
ElunaRegister<Aura> AuraMethods[] =
ALERegister<Aura> AuraMethods[] =
{
// Getters
{ "GetCaster", &LuaAura::GetCaster },
@@ -1085,7 +1085,7 @@ ElunaRegister<Aura> AuraMethods[] =
{ NULL, NULL }
};
ElunaRegister<Spell> SpellMethods[] =
ALERegister<Spell> SpellMethods[] =
{
// Getters
{ "GetCaster", &LuaSpell::GetCaster },
@@ -1111,7 +1111,7 @@ ElunaRegister<Spell> SpellMethods[] =
{ NULL, NULL }
};
ElunaRegister<Quest> QuestMethods[] =
ALERegister<Quest> QuestMethods[] =
{
// Getters
{ "GetId", &LuaQuest::GetId },
@@ -1132,7 +1132,7 @@ ElunaRegister<Quest> QuestMethods[] =
{ NULL, NULL }
};
ElunaRegister<Group> GroupMethods[] =
ALERegister<Group> GroupMethods[] =
{
// Getters
{ "GetMembers", &LuaGroup::GetMembers },
@@ -1172,7 +1172,7 @@ ElunaRegister<Group> GroupMethods[] =
{ NULL, NULL }
};
ElunaRegister<Guild> GuildMethods[] =
ALERegister<Guild> GuildMethods[] =
{
// Getters
{ "GetMembers", &LuaGuild::GetMembers },
@@ -1209,7 +1209,7 @@ ElunaRegister<Guild> GuildMethods[] =
{ NULL, NULL }
};
ElunaRegister<Vehicle> VehicleMethods[] =
ALERegister<Vehicle> VehicleMethods[] =
{
// Getters
{ "GetOwner", &LuaVehicle::GetOwner },
@@ -1226,7 +1226,7 @@ ElunaRegister<Vehicle> VehicleMethods[] =
{ NULL, NULL }
};
ElunaRegister<ElunaQuery> QueryMethods[] =
ALERegister<ALEQuery> QueryMethods[] =
{
// Getters
{ "GetColumnCount", &LuaQuery::GetColumnCount },
@@ -1252,7 +1252,7 @@ ElunaRegister<ElunaQuery> QueryMethods[] =
{ NULL, NULL }
};
ElunaRegister<WorldPacket> PacketMethods[] =
ALERegister<WorldPacket> PacketMethods[] =
{
// Getters
{ "GetOpcode", &LuaPacket::GetOpcode },
@@ -1290,7 +1290,7 @@ ElunaRegister<WorldPacket> PacketMethods[] =
{ NULL, NULL }
};
ElunaRegister<Map> MapMethods[] =
ALERegister<Map> MapMethods[] =
{
// Getters
{ "GetName", &LuaMap::GetName },
@@ -1324,7 +1324,7 @@ ElunaRegister<Map> MapMethods[] =
{ NULL, NULL }
};
ElunaRegister<Corpse> CorpseMethods[] =
ALERegister<Corpse> CorpseMethods[] =
{
// Getters
{ "GetOwnerGUID", &LuaCorpse::GetOwnerGUID },
@@ -1338,12 +1338,12 @@ ElunaRegister<Corpse> CorpseMethods[] =
{ NULL, NULL }
};
ElunaRegister<AuctionHouseEntry> AuctionMethods[] =
ALERegister<AuctionHouseEntry> AuctionMethods[] =
{
{ NULL, NULL }
};
ElunaRegister<BattleGround> BattleGroundMethods[] =
ALERegister<BattleGround> BattleGroundMethods[] =
{
// Getters
{ "GetName", &LuaBattleGround::GetName },
@@ -1367,7 +1367,7 @@ ElunaRegister<BattleGround> BattleGroundMethods[] =
{ NULL, NULL }
};
ElunaRegister<ChatHandler> ChatHandlerMethods[] =
ALERegister<ChatHandler> ChatHandlerMethods[] =
{
{ "SendSysMessage", &LuaChatHandler::SendSysMessage },
{ "IsConsole", &LuaChatHandler::IsConsole },
@@ -1387,7 +1387,7 @@ ElunaRegister<ChatHandler> ChatHandlerMethods[] =
{ NULL, NULL }
};
ElunaRegister<AchievementEntry> AchievementMethods[] =
ALERegister<AchievementEntry> AchievementMethods[] =
{
{ "GetId", &LuaAchievement::GetId },
{ "GetName", &LuaAchievement::GetName },
@@ -1395,7 +1395,7 @@ ElunaRegister<AchievementEntry> AchievementMethods[] =
{ NULL, NULL }
};
ElunaRegister<Roll> RollMethods[] =
ALERegister<Roll> RollMethods[] =
{
{ "GetItemGUID", &LuaRoll::GetItemGUID },
{ "GetItemId", &LuaRoll::GetItemId },
@@ -1414,7 +1414,7 @@ ElunaRegister<Roll> RollMethods[] =
{ NULL, NULL }
};
ElunaRegister<GmTicket> TicketMethods[] =
ALERegister<GmTicket> TicketMethods[] =
{
{ "IsClosed", &LuaTicket::IsClosed },
{ "IsCompleted", &LuaTicket::IsCompleted },
@@ -1447,7 +1447,7 @@ ElunaRegister<GmTicket> TicketMethods[] =
{ NULL, NULL }
};
ElunaRegister<SpellInfo> SpellInfoMethods[] =
ALERegister<SpellInfo> SpellInfoMethods[] =
{
// Getters
{ "GetAttributes", &LuaSpellInfo::GetAttributes },
@@ -1518,7 +1518,7 @@ ElunaRegister<SpellInfo> SpellInfoMethods[] =
{ NULL, NULL }
};
ElunaRegister<GemPropertiesEntry> GemPropertiesEntryMethods[] =
ALERegister<GemPropertiesEntry> GemPropertiesEntryMethods[] =
{
// Getters
{ "GetId", &LuaGemPropertiesEntry::GetId },
@@ -1527,7 +1527,7 @@ ElunaRegister<GemPropertiesEntry> GemPropertiesEntryMethods[] =
{ NULL, NULL }
};
ElunaRegister<SpellEntry> SpellEntryMethods[] =
ALERegister<SpellEntry> SpellEntryMethods[] =
{
// Getters
{ "GetId", &LuaSpellEntry::GetId },
@@ -1687,7 +1687,7 @@ ElunaRegister<SpellEntry> SpellEntryMethods[] =
{ NULL, NULL }
};
ElunaRegister<Pet> PetMethods[] =
ALERegister<Pet> PetMethods[] =
{
// Getters
{ "GetPetType", &LuaPet::GetPetType },
@@ -1746,7 +1746,7 @@ ElunaRegister<Pet> PetMethods[] =
{ NULL, NULL }
};
ElunaRegister<Loot> LootMethods[] =
ALERegister<Loot> LootMethods[] =
{
// Get
{ "GetMoney", &LuaLoot::GetMoney },
@@ -1789,165 +1789,165 @@ ElunaRegister<Loot> LootMethods[] =
};
// fix compile error about accessing vehicle destructor
template<> int ElunaTemplate<Vehicle>::CollectGarbage(lua_State* L)
template<> int ALETemplate<Vehicle>::CollectGarbage(lua_State* L)
{
ASSERT(!manageMemory);
// Get object pointer (and check type, no error)
ElunaObject* obj = Eluna::CHECKOBJ<ElunaObject>(L, 1, false);
ALEObject* obj = ALE::CHECKOBJ<ALEObject>(L, 1, false);
delete obj;
return 0;
}
// Template by Mud from http://stackoverflow.com/questions/4484437/lua-integer-type/4485511#4485511
template<> int ElunaTemplate<unsigned long long>::Add(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<unsigned long long>(L, 1) + Eluna::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ElunaTemplate<unsigned long long>::Substract(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<unsigned long long>(L, 1) - Eluna::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ElunaTemplate<unsigned long long>::Multiply(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<unsigned long long>(L, 1) * Eluna::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ElunaTemplate<unsigned long long>::Divide(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<unsigned long long>(L, 1) / Eluna::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ElunaTemplate<unsigned long long>::Mod(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<unsigned long long>(L, 1) % Eluna::CHECKVAL<unsigned long long>(L, 2)); return 1; }
// template<> int ElunaTemplate<unsigned long long>::UnaryMinus(lua_State* L) { Eluna::Push(L, -Eluna::CHECKVAL<unsigned long long>(L, 1)); return 1; }
template<> int ElunaTemplate<unsigned long long>::Equal(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<unsigned long long>(L, 1) == Eluna::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ElunaTemplate<unsigned long long>::Less(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<unsigned long long>(L, 1) < Eluna::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ElunaTemplate<unsigned long long>::LessOrEqual(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<unsigned long long>(L, 1) <= Eluna::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ElunaTemplate<unsigned long long>::Pow(lua_State* L)
template<> int ALETemplate<unsigned long long>::Add(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<unsigned long long>(L, 1) + ALE::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ALETemplate<unsigned long long>::Substract(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<unsigned long long>(L, 1) - ALE::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ALETemplate<unsigned long long>::Multiply(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<unsigned long long>(L, 1) * ALE::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ALETemplate<unsigned long long>::Divide(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<unsigned long long>(L, 1) / ALE::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ALETemplate<unsigned long long>::Mod(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<unsigned long long>(L, 1) % ALE::CHECKVAL<unsigned long long>(L, 2)); return 1; }
// template<> int ALETemplate<unsigned long long>::UnaryMinus(lua_State* L) { ALE::Push(L, -ALE::CHECKVAL<unsigned long long>(L, 1)); return 1; }
template<> int ALETemplate<unsigned long long>::Equal(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<unsigned long long>(L, 1) == ALE::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ALETemplate<unsigned long long>::Less(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<unsigned long long>(L, 1) < ALE::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ALETemplate<unsigned long long>::LessOrEqual(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<unsigned long long>(L, 1) <= ALE::CHECKVAL<unsigned long long>(L, 2)); return 1; }
template<> int ALETemplate<unsigned long long>::Pow(lua_State* L)
{
Eluna::Push(L, static_cast<unsigned long long>(powl(static_cast<long double>(Eluna::CHECKVAL<unsigned long long>(L, 1)), static_cast<long double>(Eluna::CHECKVAL<unsigned long long>(L, 2)))));
ALE::Push(L, static_cast<unsigned long long>(powl(static_cast<long double>(ALE::CHECKVAL<unsigned long long>(L, 1)), static_cast<long double>(ALE::CHECKVAL<unsigned long long>(L, 2)))));
return 1;
}
template<> int ElunaTemplate<unsigned long long>::ToString(lua_State* L)
template<> int ALETemplate<unsigned long long>::ToString(lua_State* L)
{
unsigned long long l = Eluna::CHECKVAL<unsigned long long>(L, 1);
unsigned long long l = ALE::CHECKVAL<unsigned long long>(L, 1);
std::ostringstream ss;
ss << l;
Eluna::Push(L, ss.str());
ALE::Push(L, ss.str());
return 1;
}
template<> int ElunaTemplate<long long>::Add(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<long long>(L, 1) + Eluna::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ElunaTemplate<long long>::Substract(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<long long>(L, 1) - Eluna::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ElunaTemplate<long long>::Multiply(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<long long>(L, 1) * Eluna::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ElunaTemplate<long long>::Divide(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<long long>(L, 1) / Eluna::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ElunaTemplate<long long>::Mod(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<long long>(L, 1) % Eluna::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ElunaTemplate<long long>::UnaryMinus(lua_State* L) { Eluna::Push(L, -Eluna::CHECKVAL<long long>(L, 1)); return 1; }
template<> int ElunaTemplate<long long>::Equal(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<long long>(L, 1) == Eluna::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ElunaTemplate<long long>::Less(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<long long>(L, 1) < Eluna::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ElunaTemplate<long long>::LessOrEqual(lua_State* L) { Eluna::Push(L, Eluna::CHECKVAL<long long>(L, 1) <= Eluna::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ElunaTemplate<long long>::Pow(lua_State* L)
template<> int ALETemplate<long long>::Add(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<long long>(L, 1) + ALE::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ALETemplate<long long>::Substract(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<long long>(L, 1) - ALE::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ALETemplate<long long>::Multiply(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<long long>(L, 1) * ALE::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ALETemplate<long long>::Divide(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<long long>(L, 1) / ALE::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ALETemplate<long long>::Mod(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<long long>(L, 1) % ALE::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ALETemplate<long long>::UnaryMinus(lua_State* L) { ALE::Push(L, -ALE::CHECKVAL<long long>(L, 1)); return 1; }
template<> int ALETemplate<long long>::Equal(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<long long>(L, 1) == ALE::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ALETemplate<long long>::Less(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<long long>(L, 1) < ALE::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ALETemplate<long long>::LessOrEqual(lua_State* L) { ALE::Push(L, ALE::CHECKVAL<long long>(L, 1) <= ALE::CHECKVAL<long long>(L, 2)); return 1; }
template<> int ALETemplate<long long>::Pow(lua_State* L)
{
Eluna::Push(L, static_cast<long long>(powl(static_cast<long double>(Eluna::CHECKVAL<long long>(L, 1)), static_cast<long double>(Eluna::CHECKVAL<long long>(L, 2)))));
ALE::Push(L, static_cast<long long>(powl(static_cast<long double>(ALE::CHECKVAL<long long>(L, 1)), static_cast<long double>(ALE::CHECKVAL<long long>(L, 2)))));
return 1;
}
template<> int ElunaTemplate<long long>::ToString(lua_State* L)
template<> int ALETemplate<long long>::ToString(lua_State* L)
{
long long l = Eluna::CHECKVAL<long long>(L, 1);
long long l = ALE::CHECKVAL<long long>(L, 1);
std::ostringstream ss;
ss << l;
Eluna::Push(L, ss.str());
ALE::Push(L, ss.str());
return 1;
}
void RegisterFunctions(Eluna* E)
void RegisterFunctions(ALE* E)
{
ElunaGlobal::SetMethods(E, GlobalMethods);
ALEGlobal::SetMethods(E, GlobalMethods);
ElunaTemplate<Object>::Register(E, "Object");
ElunaTemplate<Object>::SetMethods(E, ObjectMethods);
ALETemplate<Object>::Register(E, "Object");
ALETemplate<Object>::SetMethods(E, ObjectMethods);
ElunaTemplate<WorldObject>::Register(E, "WorldObject");
ElunaTemplate<WorldObject>::SetMethods(E, ObjectMethods);
ElunaTemplate<WorldObject>::SetMethods(E, WorldObjectMethods);
ALETemplate<WorldObject>::Register(E, "WorldObject");
ALETemplate<WorldObject>::SetMethods(E, ObjectMethods);
ALETemplate<WorldObject>::SetMethods(E, WorldObjectMethods);
ElunaTemplate<Unit>::Register(E, "Unit");
ElunaTemplate<Unit>::SetMethods(E, ObjectMethods);
ElunaTemplate<Unit>::SetMethods(E, WorldObjectMethods);
ElunaTemplate<Unit>::SetMethods(E, UnitMethods);
ALETemplate<Unit>::Register(E, "Unit");
ALETemplate<Unit>::SetMethods(E, ObjectMethods);
ALETemplate<Unit>::SetMethods(E, WorldObjectMethods);
ALETemplate<Unit>::SetMethods(E, UnitMethods);
ElunaTemplate<Player>::Register(E, "Player");
ElunaTemplate<Player>::SetMethods(E, ObjectMethods);
ElunaTemplate<Player>::SetMethods(E, WorldObjectMethods);
ElunaTemplate<Player>::SetMethods(E, UnitMethods);
ElunaTemplate<Player>::SetMethods(E, PlayerMethods);
ALETemplate<Player>::Register(E, "Player");
ALETemplate<Player>::SetMethods(E, ObjectMethods);
ALETemplate<Player>::SetMethods(E, WorldObjectMethods);
ALETemplate<Player>::SetMethods(E, UnitMethods);
ALETemplate<Player>::SetMethods(E, PlayerMethods);
ElunaTemplate<Creature>::Register(E, "Creature");
ElunaTemplate<Creature>::SetMethods(E, ObjectMethods);
ElunaTemplate<Creature>::SetMethods(E, WorldObjectMethods);
ElunaTemplate<Creature>::SetMethods(E, UnitMethods);
ElunaTemplate<Creature>::SetMethods(E, CreatureMethods);
ALETemplate<Creature>::Register(E, "Creature");
ALETemplate<Creature>::SetMethods(E, ObjectMethods);
ALETemplate<Creature>::SetMethods(E, WorldObjectMethods);
ALETemplate<Creature>::SetMethods(E, UnitMethods);
ALETemplate<Creature>::SetMethods(E, CreatureMethods);
ElunaTemplate<GameObject>::Register(E, "GameObject");
ElunaTemplate<GameObject>::SetMethods(E, ObjectMethods);
ElunaTemplate<GameObject>::SetMethods(E, WorldObjectMethods);
ElunaTemplate<GameObject>::SetMethods(E, GameObjectMethods);
ALETemplate<GameObject>::Register(E, "GameObject");
ALETemplate<GameObject>::SetMethods(E, ObjectMethods);
ALETemplate<GameObject>::SetMethods(E, WorldObjectMethods);
ALETemplate<GameObject>::SetMethods(E, GameObjectMethods);
ElunaTemplate<Corpse>::Register(E, "Corpse");
ElunaTemplate<Corpse>::SetMethods(E, ObjectMethods);
ElunaTemplate<Corpse>::SetMethods(E, WorldObjectMethods);
ElunaTemplate<Corpse>::SetMethods(E, CorpseMethods);
ALETemplate<Corpse>::Register(E, "Corpse");
ALETemplate<Corpse>::SetMethods(E, ObjectMethods);
ALETemplate<Corpse>::SetMethods(E, WorldObjectMethods);
ALETemplate<Corpse>::SetMethods(E, CorpseMethods);
ElunaTemplate<Item>::Register(E, "Item");
ElunaTemplate<Item>::SetMethods(E, ObjectMethods);
ElunaTemplate<Item>::SetMethods(E, ItemMethods);
ALETemplate<Item>::Register(E, "Item");
ALETemplate<Item>::SetMethods(E, ObjectMethods);
ALETemplate<Item>::SetMethods(E, ItemMethods);
ElunaTemplate<ItemTemplate>::Register(E, "ItemTemplate");
ElunaTemplate<ItemTemplate>::SetMethods(E, ItemTemplateMethods);
ALETemplate<ItemTemplate>::Register(E, "ItemTemplate");
ALETemplate<ItemTemplate>::SetMethods(E, ItemTemplateMethods);
ElunaTemplate<Vehicle>::Register(E, "Vehicle");
ElunaTemplate<Vehicle>::SetMethods(E, VehicleMethods);
ALETemplate<Vehicle>::Register(E, "Vehicle");
ALETemplate<Vehicle>::SetMethods(E, VehicleMethods);
ElunaTemplate<Group>::Register(E, "Group");
ElunaTemplate<Group>::SetMethods(E, GroupMethods);
ALETemplate<Group>::Register(E, "Group");
ALETemplate<Group>::SetMethods(E, GroupMethods);
ElunaTemplate<Guild>::Register(E, "Guild");
ElunaTemplate<Guild>::SetMethods(E, GuildMethods);
ALETemplate<Guild>::Register(E, "Guild");
ALETemplate<Guild>::SetMethods(E, GuildMethods);
ElunaTemplate<Aura>::Register(E, "Aura");
ElunaTemplate<Aura>::SetMethods(E, AuraMethods);
ALETemplate<Aura>::Register(E, "Aura");
ALETemplate<Aura>::SetMethods(E, AuraMethods);
ElunaTemplate<Spell>::Register(E, "Spell");
ElunaTemplate<Spell>::SetMethods(E, SpellMethods);
ALETemplate<Spell>::Register(E, "Spell");
ALETemplate<Spell>::SetMethods(E, SpellMethods);
ElunaTemplate<Quest>::Register(E, "Quest");
ElunaTemplate<Quest>::SetMethods(E, QuestMethods);
ALETemplate<Quest>::Register(E, "Quest");
ALETemplate<Quest>::SetMethods(E, QuestMethods);
ElunaTemplate<Map>::Register(E, "Map");
ElunaTemplate<Map>::SetMethods(E, MapMethods);
ALETemplate<Map>::Register(E, "Map");
ALETemplate<Map>::SetMethods(E, MapMethods);
ElunaTemplate<AuctionHouseEntry>::Register(E, "AuctionHouseEntry");
ElunaTemplate<AuctionHouseEntry>::SetMethods(E, AuctionMethods);
ALETemplate<AuctionHouseEntry>::Register(E, "AuctionHouseEntry");
ALETemplate<AuctionHouseEntry>::SetMethods(E, AuctionMethods);
ElunaTemplate<BattleGround>::Register(E, "BattleGround");
ElunaTemplate<BattleGround>::SetMethods(E, BattleGroundMethods);
ALETemplate<BattleGround>::Register(E, "BattleGround");
ALETemplate<BattleGround>::SetMethods(E, BattleGroundMethods);
ElunaTemplate<ChatHandler>::Register(E, "ChatHandler");
ElunaTemplate<ChatHandler>::SetMethods(E, ChatHandlerMethods);
ALETemplate<ChatHandler>::Register(E, "ChatHandler");
ALETemplate<ChatHandler>::SetMethods(E, ChatHandlerMethods);
ElunaTemplate<WorldPacket>::Register(E, "WorldPacket", true);
ElunaTemplate<WorldPacket>::SetMethods(E, PacketMethods);
ALETemplate<WorldPacket>::Register(E, "WorldPacket", true);
ALETemplate<WorldPacket>::SetMethods(E, PacketMethods);
ElunaTemplate<ElunaQuery>::Register(E, "ElunaQuery", true);
ElunaTemplate<ElunaQuery>::SetMethods(E, QueryMethods);
ALETemplate<ALEQuery>::Register(E, "ALEQuery", true);
ALETemplate<ALEQuery>::SetMethods(E, QueryMethods);
ElunaTemplate<AchievementEntry>::Register(E, "AchievementEntry");
ElunaTemplate<AchievementEntry>::SetMethods(E, AchievementMethods);
ALETemplate<AchievementEntry>::Register(E, "AchievementEntry");
ALETemplate<AchievementEntry>::SetMethods(E, AchievementMethods);
ElunaTemplate<Roll>::Register(E, "Roll");
ElunaTemplate<Roll>::SetMethods(E, RollMethods);
ALETemplate<Roll>::Register(E, "Roll");
ALETemplate<Roll>::SetMethods(E, RollMethods);
ElunaTemplate<GmTicket>::Register(E, "Ticket");
ElunaTemplate<GmTicket>::SetMethods(E, TicketMethods);
ALETemplate<GmTicket>::Register(E, "Ticket");
ALETemplate<GmTicket>::SetMethods(E, TicketMethods);
ElunaTemplate<SpellInfo>::Register(E, "SpellInfo");
ElunaTemplate<SpellInfo>::SetMethods(E, SpellInfoMethods);
ALETemplate<SpellInfo>::Register(E, "SpellInfo");
ALETemplate<SpellInfo>::SetMethods(E, SpellInfoMethods);
ElunaTemplate<GemPropertiesEntry>::Register(E, "GemPropertiesEntry");
ElunaTemplate<GemPropertiesEntry>::SetMethods(E, GemPropertiesEntryMethods);
ALETemplate<GemPropertiesEntry>::Register(E, "GemPropertiesEntry");
ALETemplate<GemPropertiesEntry>::SetMethods(E, GemPropertiesEntryMethods);
ElunaTemplate<SpellEntry>::Register(E, "SpellEntry");
ElunaTemplate<SpellEntry>::SetMethods(E, SpellEntryMethods);
ALETemplate<SpellEntry>::Register(E, "SpellEntry");
ALETemplate<SpellEntry>::SetMethods(E, SpellEntryMethods);
ElunaTemplate<CreatureTemplate>::Register(E, "CreatureTemplate");
ALETemplate<CreatureTemplate>::Register(E, "CreatureTemplate");
ElunaTemplate<long long>::Register(E, "long long", true);
ALETemplate<long long>::Register(E, "long long", true);
ElunaTemplate<unsigned long long>::Register(E, "unsigned long long", true);
ALETemplate<unsigned long long>::Register(E, "unsigned long long", true);
}