diff --git a/CMangos/AuraMethods.h b/CMangos/AuraMethods.h index 6fa2cbe215..0d03d53654 100644 --- a/CMangos/AuraMethods.h +++ b/CMangos/AuraMethods.h @@ -214,7 +214,7 @@ namespace LuaAura return 0; } - ElunaRegister AuraMethodsOverride[] = + ElunaRegister AuraMethods[] = { // Getters { "GetCaster", &LuaAura::GetCaster }, diff --git a/CMangos/BattleGroundMethods.h b/CMangos/BattleGroundMethods.h index 3e82eb4d00..82176e4a6e 100644 --- a/CMangos/BattleGroundMethods.h +++ b/CMangos/BattleGroundMethods.h @@ -253,7 +253,7 @@ namespace LuaBattleGround return 1; } - ElunaRegister BattleGroundMethodsOverride[] = + ElunaRegister BattleGroundMethods[] = { // Getters { "GetName", &LuaBattleGround::GetName }, diff --git a/CMangos/CorpseMethods.h b/CMangos/CorpseMethods.h index 18464a1dc5..13188331fe 100644 --- a/CMangos/CorpseMethods.h +++ b/CMangos/CorpseMethods.h @@ -78,7 +78,7 @@ namespace LuaCorpse return 0; } - ElunaRegister CorpseMethodsOverride[] = + ElunaRegister CorpseMethods[] = { // Getters { "GetOwnerGUID", &LuaCorpse::GetOwnerGUID }, diff --git a/CMangos/CreatureMethods.h b/CMangos/CreatureMethods.h index 1400ebb7c2..bc5e12ad63 100644 --- a/CMangos/CreatureMethods.h +++ b/CMangos/CreatureMethods.h @@ -1500,7 +1500,7 @@ namespace LuaCreature return 1; } - ElunaRegister CreatureMethodsOverride[] = + ElunaRegister CreatureMethods[] = { // Getters { "GetAITarget", &LuaCreature::GetAITarget }, @@ -1518,8 +1518,6 @@ namespace LuaCreature { "GetRespawnDelay", &LuaCreature::GetRespawnDelay }, { "GetWanderRadius", &LuaCreature::GetWanderRadius }, { "GetCurrentWaypointId", &LuaCreature::GetCurrentWaypointId }, - { "GetWaypointPath", nullptr }, // TC/Acore - { "GetLootMode", nullptr }, // TC/Acore { "GetLootRecipient", &LuaCreature::GetLootRecipient }, { "GetLootRecipientGroup", &LuaCreature::GetLootRecipientGroup }, { "GetNPCFlags", &LuaCreature::GetNPCFlags }, @@ -1529,7 +1527,6 @@ namespace LuaCreature { "GetCreatureFamily", &LuaCreature::GetCreatureFamily }, // Setters - { "SetRegeneratingHealth", nullptr }, // TC/Acore { "SetHover", &LuaCreature::SetHover }, { "SetDisableGravity", &LuaCreature::SetDisableGravity }, { "SetAggroEnabled", &LuaCreature::SetAggroEnabled }, @@ -1540,9 +1537,7 @@ namespace LuaCreature { "SetWanderRadius", &LuaCreature::SetWanderRadius }, { "SetInCombatWithZone", &LuaCreature::SetInCombatWithZone }, { "SetDisableReputationGain", &LuaCreature::SetDisableReputationGain }, - { "SetLootMode", nullptr }, // TC/Acore { "SetNPCFlags", &LuaCreature::SetNPCFlags }, - { "SetReactState", nullptr }, // TC/Acore { "SetDeathState", &LuaCreature::SetDeathState }, { "SetWalk", &LuaCreature::SetWalk }, { "SetHomePosition", &LuaCreature::SetHomePosition }, @@ -1550,11 +1545,9 @@ namespace LuaCreature // Boolean { "IsRegeneratingHealth", &LuaCreature::IsRegeneratingHealth }, - { "IsDungeonBoss", nullptr }, // TC/Acore { "IsWorldBoss", &LuaCreature::IsWorldBoss }, { "IsRacialLeader", &LuaCreature::IsRacialLeader }, { "IsCivilian", &LuaCreature::IsCivilian }, - { "IsTrigger", nullptr }, // TC/Acore { "IsGuard", &LuaCreature::IsGuard }, { "IsElite", &LuaCreature::IsElite }, { "IsInEvadeMode", &LuaCreature::IsInEvadeMode }, @@ -1562,7 +1555,6 @@ namespace LuaCreature { "CanWalk", &LuaCreature::CanWalk }, { "CanSwim", &LuaCreature::CanSwim }, { "CanAggro", &LuaCreature::CanAggro }, - { "CanStartAttack", nullptr }, // TC/Acore { "HasSearchedAssistance", &LuaCreature::HasSearchedAssistance }, { "IsTappedBy", &LuaCreature::IsTappedBy }, { "HasLootRecipient", &LuaCreature::HasLootRecipient }, @@ -1570,8 +1562,6 @@ namespace LuaCreature { "IsTargetableForAttack", &LuaCreature::IsTargetableForAttack }, { "CanCompleteQuest", &LuaCreature::CanCompleteQuest }, { "IsReputationGainDisabled", &LuaCreature::IsReputationGainDisabled }, - { "IsDamageEnoughForLootingAndReward", nullptr }, // TC/Acore - { "HasLootMode", nullptr }, // TC/Acore { "HasSpell", &LuaCreature::HasSpell }, { "HasQuest", &LuaCreature::HasQuest }, { "HasSpellCooldown", &LuaCreature::HasSpellCooldown }, @@ -1585,14 +1575,26 @@ namespace LuaCreature { "DespawnOrUnsummon", &LuaCreature::DespawnOrUnsummon }, { "Respawn", &LuaCreature::Respawn }, { "AttackStart", &LuaCreature::AttackStart }, - { "AddLootMode", nullptr }, // TC/Acore - { "ResetLootMode", nullptr }, // TC/Acore - { "RemoveLootMode", nullptr }, // TC/Acore { "SaveToDB", &LuaCreature::SaveToDB }, { "SelectVictim", &LuaCreature::SelectVictim }, { "MoveWaypoint", &LuaCreature::MoveWaypoint }, { "UpdateEntry", &LuaCreature::UpdateEntry }, + // Not implemented methods + { "GetWaypointPath", nullptr }, // TC/Acore + { "GetLootMode", nullptr }, // TC/Acore + { "SetRegeneratingHealth", nullptr }, // TC/Acore + { "SetLootMode", nullptr }, // TC/Acore + { "SetReactState", nullptr }, // TC/Acore + { "IsDungeonBoss", nullptr }, // TC/Acore + { "IsTrigger", nullptr }, // TC/Acore + { "CanStartAttack", nullptr }, // TC/Acore + { "IsDamageEnoughForLootingAndReward", nullptr }, // TC/Acore + { "HasLootMode", nullptr }, // TC/Acore + { "AddLootMode", nullptr }, // TC/Acore + { "ResetLootMode", nullptr }, // TC/Acore + { "RemoveLootMode", nullptr }, // TC/Acore + { NULL, NULL } }; }; diff --git a/CMangos/ElunaQueryMethods.h b/CMangos/ElunaQueryMethods.h index f4011ccd57..ced7898947 100644 --- a/CMangos/ElunaQueryMethods.h +++ b/CMangos/ElunaQueryMethods.h @@ -368,7 +368,7 @@ namespace LuaQuery return 1; } - ElunaRegister QueryMethodsOverride[] = + ElunaRegister QueryMethods[] = { // Getters { "GetColumnCount", &LuaQuery::GetColumnCount }, diff --git a/CMangos/GameObjectMethods.h b/CMangos/GameObjectMethods.h index d34a104228..f82487d098 100644 --- a/CMangos/GameObjectMethods.h +++ b/CMangos/GameObjectMethods.h @@ -343,7 +343,7 @@ namespace LuaGameObject return 0; } - ElunaRegister GameObjectMethodsOverride[] = + ElunaRegister GameObjectMethods[] = { // Getters { "GetDisplayId", &LuaGameObject::GetDisplayId }, @@ -360,7 +360,6 @@ namespace LuaGameObject // Boolean { "IsTransport", &LuaGameObject::IsTransport }, - { "IsDestructible", nullptr }, // Not implemented { "IsActive", &LuaGameObject::IsActive }, { "HasQuest", &LuaGameObject::HasQuest }, { "IsSpawned", &LuaGameObject::IsSpawned }, @@ -372,6 +371,9 @@ namespace LuaGameObject { "Respawn", &LuaGameObject::Respawn }, { "SaveToDB", &LuaGameObject::SaveToDB }, + // Not implemented methods + { "IsDestructible", nullptr }, // Not implemented + { NULL, NULL } }; }; diff --git a/CMangos/GlobalMethods.h b/CMangos/GlobalMethods.h index 0e327f09f4..7b7b75caa6 100644 --- a/CMangos/GlobalMethods.h +++ b/CMangos/GlobalMethods.h @@ -3270,7 +3270,7 @@ namespace LuaGlobalFunctions return 0; } - luaL_Reg GlobalMethodsOverride[] = + luaL_Reg GlobalMethods[] = { // Hooks { "RegisterPacketEvent", &LuaGlobalFunctions::RegisterPacketEvent }, diff --git a/CMangos/GroupMethods.h b/CMangos/GroupMethods.h index aabd03cc07..3c3a27492b 100644 --- a/CMangos/GroupMethods.h +++ b/CMangos/GroupMethods.h @@ -426,7 +426,7 @@ namespace LuaGroup return 0; }*/ - ElunaRegister GroupMethodsOverride[] = + ElunaRegister GroupMethods[] = { // Getters { "GetMembers", &LuaGroup::GetMembers }, @@ -449,7 +449,6 @@ namespace LuaGroup { "IsFull", &LuaGroup::IsFull }, { "IsRaidGroup", &LuaGroup::IsRaidGroup }, { "IsBGGroup", &LuaGroup::IsBGGroup }, - { "IsBFGroup", nullptr }, // not implemented { "IsMember", &LuaGroup::IsMember }, { "IsAssistant", &LuaGroup::IsAssistant }, { "SameSubGroup", &LuaGroup::SameSubGroup }, @@ -460,9 +459,12 @@ namespace LuaGroup // Other { "SendPacket", &LuaGroup::SendPacket }, - { "ConvertToLFG", nullptr }, // not implemented { "ConvertToRaid", &LuaGroup::ConvertToRaid }, + // Not implemented methods + { "IsBFGroup", nullptr }, // not implemented + { "ConvertToLFG", nullptr }, // not implemented + { NULL, NULL } }; }; diff --git a/CMangos/GuildMethods.h b/CMangos/GuildMethods.h index 755a265ba1..f67ba559f8 100644 --- a/CMangos/GuildMethods.h +++ b/CMangos/GuildMethods.h @@ -302,7 +302,7 @@ namespace LuaGuild return 0; } - ElunaRegister GuildMethodsOverride[] = + ElunaRegister GuildMethods[] = { // Getters { "GetMembers", &LuaGuild::GetMembers }, diff --git a/CMangos/ItemMethods.h b/CMangos/ItemMethods.h index 1e00588f44..00b8852bb5 100644 --- a/CMangos/ItemMethods.h +++ b/CMangos/ItemMethods.h @@ -765,7 +765,7 @@ namespace LuaItem return 0; } - ElunaRegister ItemMethodsOverride[] = + ElunaRegister ItemMethods[] = { // Getters { "GetOwnerGUID", &LuaItem::GetOwnerGUID }, @@ -821,7 +821,6 @@ namespace LuaItem { "HasQuest", &LuaItem::HasQuest }, { "IsPotion", &LuaItem::IsPotion }, { "IsConjuredConsumable", &LuaItem::IsConjuredConsumable }, - { "IsRefundExpired", nullptr }, // not implemented { "SetEnchantment", &LuaItem::SetEnchantment }, { "ClearEnchantment", &LuaItem::ClearEnchantment }, #if defined(TBC) || defined(WOTLK) @@ -836,6 +835,9 @@ namespace LuaItem // Other { "SaveToDB", &LuaItem::SaveToDB }, + // Not implemented methods + { "IsRefundExpired", nullptr }, // not implemented + { NULL, NULL } }; }; diff --git a/CMangos/MapMethods.h b/CMangos/MapMethods.h index 3bd8e4d9d3..1db2e904a3 100644 --- a/CMangos/MapMethods.h +++ b/CMangos/MapMethods.h @@ -370,7 +370,7 @@ namespace LuaMap return 1; } - ElunaRegister MapMethodsOverride[] = + ElunaRegister MapMethods[] = { // Getters { "GetName", &LuaMap::GetName }, diff --git a/CMangos/ObjectMethods.h b/CMangos/ObjectMethods.h index 89830ec7f7..7bdd5db096 100644 --- a/CMangos/ObjectMethods.h +++ b/CMangos/ObjectMethods.h @@ -461,7 +461,7 @@ namespace LuaObject return 1; } - ElunaRegister ObjectMethodsOverride[] = + ElunaRegister ObjectMethods[] = { // Getters { "GetEntry", &LuaObject::GetEntry }, diff --git a/CMangos/PlayerMethods.h b/CMangos/PlayerMethods.h index 2b6f40a179..ae48f05b58 100644 --- a/CMangos/PlayerMethods.h +++ b/CMangos/PlayerMethods.h @@ -4294,7 +4294,7 @@ namespace LuaPlayer return 0; }*/ - ElunaRegister PlayerMethodsOverride[] = + ElunaRegister PlayerMethods[] = { // Getters { "GetSelection", &LuaPlayer::GetSelection }, @@ -4349,18 +4349,13 @@ namespace LuaPlayer { "GetNextRandomRaidMember", &LuaPlayer::GetNextRandomRaidMember }, { "GetOriginalGroup", &LuaPlayer::GetOriginalGroup }, { "GetOriginalSubGroup", &LuaPlayer::GetOriginalSubGroup }, - { "GetChampioningFaction", nullptr }, // ACore & TC only { "GetLatency", &LuaPlayer::GetLatency }, - { "GetRecruiterId", nullptr }, // not implemented { "GetDbLocaleIndex", &LuaPlayer::GetDbLocaleIndex }, { "GetDbcLocale", &LuaPlayer::GetDbcLocale }, { "GetCorpse", &LuaPlayer::GetCorpse }, { "GetGossipTextId", &LuaPlayer::GetGossipTextId }, { "GetQuestRewardStatus", &LuaPlayer::GetQuestRewardStatus }, { "GetShieldBlockValue", &LuaPlayer::GetShieldBlockValue }, - { "GetHonorStoredKills", nullptr }, // classic only - { "GetRankPoints", nullptr }, // classic only - { "GetHonorLastWeekStandingPos", nullptr }, // classic only #if defined(TBC) || defined(WOTLK) { "GetArenaPoints", &LuaPlayer::GetArenaPoints }, { "GetHonorPoints", &LuaPlayer::GetHonorPoints }, @@ -4378,9 +4373,6 @@ namespace LuaPlayer { "AddLifetimeKills", &LuaPlayer::AddLifetimeKills }, { "SetCoinage", &LuaPlayer::SetCoinage }, { "SetBindPoint", &LuaPlayer::SetBindPoint }, - { "SetHonorStoredKills", nullptr }, // classic only - { "SetRankPoints", nullptr }, // classic only - { "SetHonorLastWeekStandingPos", nullptr }, // classic only { "SetLifetimeKills", &LuaPlayer::SetLifetimeKills }, { "SetGameMaster", &LuaPlayer::SetGameMaster }, { "SetGMChat", &LuaPlayer::SetGMChat }, @@ -4393,7 +4385,6 @@ namespace LuaPlayer { "SetReputation", &LuaPlayer::SetReputation }, { "SetFreeTalentPoints", &LuaPlayer::SetFreeTalentPoints }, { "SetGuildRank", &LuaPlayer::SetGuildRank }, - { "SetMovement", nullptr }, // not implemented { "SetSkill", &LuaPlayer::SetSkill }, { "SetFactionForRace", &LuaPlayer::SetFactionForRace }, { "SetDrunkValue", &LuaPlayer::SetDrunkValue }, @@ -4401,7 +4392,6 @@ namespace LuaPlayer { "SetPlayerLock", &LuaPlayer::SetPlayerLock }, { "SetGender", &LuaPlayer::SetGender }, { "SetSheath", &LuaPlayer::SetSheath }, - { "SetFFA", nullptr }, // not implemented #if defined(TBC) || defined(WOTLK) { "SetKnownTitle", &LuaPlayer::SetKnownTitle }, { "UnsetKnownTitle", &LuaPlayer::UnsetKnownTitle }, @@ -4432,21 +4422,14 @@ namespace LuaPlayer { "IsGMVisible", &LuaPlayer::IsGMVisible }, { "HasQuest", &LuaPlayer::HasQuest }, { "InBattlegroundQueue", &LuaPlayer::InBattlegroundQueue }, - { "IsImmuneToEnvironmentalDamage", nullptr}, // not implemented { "CanSpeak", &LuaPlayer::CanSpeak }, { "HasAtLoginFlag", &LuaPlayer::HasAtLoginFlag }, - { "InRandomLfgDungeon", nullptr }, // not implemented - { "HasPendingBind", nullptr }, //not implmented { "CanUninviteFromGroup", &LuaPlayer::CanUninviteFromGroup }, { "IsRested", &LuaPlayer::IsRested }, - { "CanFlyInZone", nullptr }, // not implemented - { "IsNeverVisible", nullptr }, // not implemented { "IsVisibleForPlayer", &LuaPlayer::IsVisibleForPlayer }, - { "IsUsingLfg", nullptr }, // not implemented { "HasQuestForItem", &LuaPlayer::HasQuestForItem }, { "HasQuestForGO", &LuaPlayer::HasQuestForGO }, { "CanShareQuest", &LuaPlayer::CanShareQuest }, - { "HasReceivedQuestReward", nullptr }, // not implemented { "IsInSameGroupWith", &LuaPlayer::IsInSameGroupWith }, { "IsInSameRaidWith", &LuaPlayer::IsInSameRaidWith }, { "IsGroupVisibleFor", &LuaPlayer::IsGroupVisibleFor }, @@ -4455,8 +4438,6 @@ namespace LuaPlayer { "CanParry", &LuaPlayer::CanParry }, { "CanBlock", &LuaPlayer::CanBlock }, { "InBattleground", &LuaPlayer::InBattleground }, - { "IsOutdoorPvPActive", nullptr }, // not implemented - { "IsARecruiter", nullptr }, // not implemented { "CanUseItem", &LuaPlayer::CanUseItem }, { "HasSpell", &LuaPlayer::HasSpell }, { "HasSpellCooldown", &LuaPlayer::HasSpellCooldown }, @@ -4471,7 +4452,6 @@ namespace LuaPlayer #endif #if defined(WOTLK) { "HasAchieved", &LuaPlayer::HasAchieved }, - { "SetAchievement", nullptr }, // TC/Acore { "HasTalent", &LuaPlayer::HasTalent }, { "CanTitanGrip", &LuaPlayer::CanTitanGrip }, #endif @@ -4499,8 +4479,6 @@ namespace LuaPlayer { "ResetTypeCooldowns", &LuaPlayer::ResetTypeCooldowns }, { "ResetAllCooldowns", &LuaPlayer::ResetAllCooldowns }, { "GiveXP", &LuaPlayer::GiveXP }, - { "RemovePet", nullptr }, // not implemented - { "SummonPet", nullptr }, // not implemented { "Say", &LuaPlayer::Say }, { "Yell", &LuaPlayer::Yell }, { "TextEmote", &LuaPlayer::TextEmote }, @@ -4510,21 +4488,15 @@ namespace LuaPlayer { "FailQuest", &LuaPlayer::FailQuest }, { "AddQuest", &LuaPlayer::AddQuest }, { "RemoveQuest", &LuaPlayer::RemoveQuest }, - { "RemoveActiveQuest", nullptr }, // not implemented - { "RemoveRewardedQuest", nullptr }, // not implemented { "AreaExploredOrEventHappens", &LuaPlayer::AreaExploredOrEventHappens }, { "GroupEventHappens", &LuaPlayer::GroupEventHappens }, { "KilledMonsterCredit", &LuaPlayer::KilledMonsterCredit }, - { "KilledPlayerCredit", nullptr }, // not implemented - { "KillGOCredit", nullptr }, // not implemented { "TalkedToCreature", &LuaPlayer::TalkedToCreature }, { "AddComboPoints", &LuaPlayer::AddComboPoints }, - { "GainSpellComboPoints", nullptr }, // not implemented { "ClearComboPoints", &LuaPlayer::ClearComboPoints }, { "RemoveSpell", &LuaPlayer::RemoveSpell }, { "ResetTalents", &LuaPlayer::ResetTalents }, { "ResetTalentsCost", &LuaPlayer::ResetTalentsCost }, - { "AddTalent", nullptr }, // not implemented { "RemoveFromGroup", &LuaPlayer::RemoveFromGroup }, { "KillPlayer", &LuaPlayer::KillPlayer }, { "DurabilityLossAll", &LuaPlayer::DurabilityLossAll }, @@ -4535,7 +4507,6 @@ namespace LuaPlayer { "DurabilityRepairAll", &LuaPlayer::DurabilityRepairAll }, { "DurabilityRepair", &LuaPlayer::DurabilityRepair }, { "LeaveBattleground", &LuaPlayer::LeaveBattleground }, - { "BindToInstance", nullptr }, // not implemented { "UnbindInstance", &LuaPlayer::UnbindInstance }, { "UnbindAllInstances", &LuaPlayer::UnbindAllInstances }, { "RemoveFromBattlegroundRaid", &LuaPlayer::RemoveFromBattlegroundRaid }, @@ -4564,9 +4535,6 @@ namespace LuaPlayer { "GroupInvite", &LuaPlayer::GroupInvite }, { "GroupCreate", &LuaPlayer::GroupCreate }, { "SendCinematicStart", &LuaPlayer::SendCinematicStart }, - { "UpdateHonor", nullptr }, // classic only - { "ResetHonor", nullptr }, // classic only - { "ClearHonorInfo", nullptr }, // classic only #if defined(TBC) || defined(WOTLK) { "RemoveArenaSpellCooldowns", &LuaPlayer::RemoveArenaSpellCooldowns }, { "ModifyHonorPoints", &LuaPlayer::ModifyHonorPoints }, @@ -4577,6 +4545,39 @@ namespace LuaPlayer { "ResetAchievements", &LuaPlayer::ResetAchievements }, { "SendMovieStart", &LuaPlayer::SendMovieStart }, #endif + // Not implemented methods + { "GetChampioningFaction", nullptr }, // ACore & TC only + { "GetRecruiterId", nullptr }, // not implemented + { "GetHonorStoredKills", nullptr }, // classic only + { "GetRankPoints", nullptr }, // classic only + { "GetHonorLastWeekStandingPos", nullptr }, // classic only + { "SetHonorStoredKills", nullptr }, // classic only + { "SetRankPoints", nullptr }, // classic only + { "SetHonorLastWeekStandingPos", nullptr }, // classic only + { "SetMovement", nullptr }, // not implemented + { "SetFFA", nullptr }, // not implemented + { "IsImmuneToEnvironmentalDamage", nullptr}, // not implemented + { "InRandomLfgDungeon", nullptr }, // not implemented + { "HasPendingBind", nullptr }, //not implmented + { "CanFlyInZone", nullptr }, // not implemented + { "IsNeverVisible", nullptr }, // not implemented + { "IsUsingLfg", nullptr }, // not implemented + { "HasReceivedQuestReward", nullptr }, // not implemented + { "IsOutdoorPvPActive", nullptr }, // not implemented + { "IsARecruiter", nullptr }, // not implemented + { "SetAchievement", nullptr }, // TC/Acore + { "RemovePet", nullptr }, // not implemented + { "SummonPet", nullptr }, // not implemented + { "RemoveActiveQuest", nullptr }, // not implemented + { "RemoveRewardedQuest", nullptr }, // not implemented + { "KilledPlayerCredit", nullptr }, // not implemented + { "KillGOCredit", nullptr }, // not implemented + { "GainSpellComboPoints", nullptr }, // not implemented + { "AddTalent", nullptr }, // not implemented + { "BindToInstance", nullptr }, // not implemented + { "UpdateHonor", nullptr }, // classic only + { "ResetHonor", nullptr }, // classic only + { "ClearHonorInfo", nullptr }, // classic only { NULL, NULL } }; diff --git a/CMangos/QuestMethods.h b/CMangos/QuestMethods.h index 80408b3799..4e020545f5 100644 --- a/CMangos/QuestMethods.h +++ b/CMangos/QuestMethods.h @@ -184,12 +184,11 @@ namespace LuaQuest return 1; }*/ - ElunaRegister QuestMethodsOverride[] = + ElunaRegister QuestMethods[] = { // Getters { "GetId", &LuaQuest::GetId }, { "GetLevel", &LuaQuest::GetLevel }, - { "GetMaxLevel", nullptr }, // not implemented { "GetMinLevel", &LuaQuest::GetMinLevel }, { "GetNextQuestId", &LuaQuest::GetNextQuestId }, { "GetPrevQuestId", &LuaQuest::GetPrevQuestId }, @@ -204,6 +203,9 @@ namespace LuaQuest #endif { "IsRepeatable", &LuaQuest::IsRepeatable }, + // Not implemented methods + { "GetMaxLevel", nullptr }, // not implemented + { NULL, NULL } }; }; diff --git a/CMangos/SpellMethods.h b/CMangos/SpellMethods.h index ede5c80acd..19e3855750 100644 --- a/CMangos/SpellMethods.h +++ b/CMangos/SpellMethods.h @@ -190,7 +190,7 @@ namespace LuaSpell return 0; } - ElunaRegister SpellMethodsOverride[] = + ElunaRegister SpellMethods[] = { // Getters { "GetCaster", &LuaSpell::GetCaster }, diff --git a/CMangos/UnitMethods.h b/CMangos/UnitMethods.h index 1ea7c36a6e..78ebe671e3 100644 --- a/CMangos/UnitMethods.h +++ b/CMangos/UnitMethods.h @@ -3111,7 +3111,7 @@ namespace LuaUnit return 1; }*/ - ElunaRegister UnitMethodsOverride[] = + ElunaRegister UnitMethods[] = { // Getters { "GetLevel", &LuaUnit::GetLevel }, @@ -3152,7 +3152,6 @@ namespace LuaUnit { "GetSpeed", &LuaUnit::GetSpeed }, { "GetStat", &LuaUnit::GetStat }, { "GetBaseSpellPower", &LuaUnit::GetBaseSpellPower }, - { "GetVehicle", nullptr }, // not implemented { "GetMovementType", &LuaUnit::GetMovementType }, #if defined(WOTLK) { "GetCritterGUID", &LuaUnit::GetCritterGUID }, @@ -3172,13 +3171,10 @@ namespace LuaUnit { "SetFacing", &LuaUnit::SetFacing }, { "SetFacingToObject", &LuaUnit::SetFacingToObject }, { "SetSpeed", &LuaUnit::SetSpeed }, - { "SetStunned", nullptr }, // not implemented {"SetRooted", &LuaUnit::SetRooted}, {"SetConfused", &LuaUnit::SetConfused}, {"SetFeared", &LuaUnit::SetFeared}, { "SetPvP", &LuaUnit::SetPvP }, - { "SetCanFly", nullptr }, // not implemented - { "SetVisible", nullptr }, // not implemented { "SetOwnerGUID", &LuaUnit::SetOwnerGUID }, { "SetName", &LuaUnit::SetName }, { "SetSheath", &LuaUnit::SetSheath }, @@ -3224,9 +3220,6 @@ namespace LuaUnit { "IsMounted", &LuaUnit::IsMounted }, { "AttackStop", &LuaUnit::AttackStop }, { "Attack", &LuaUnit::Attack }, - { "IsVisible", nullptr }, // not implemented - { "IsMoving", nullptr }, // not implemented - { "IsFlying", nullptr }, // not implemented { "IsStopped", &LuaUnit::IsStopped }, { "HasUnitState", &LuaUnit::HasUnitState }, { "IsQuestGiver", &LuaUnit::IsQuestGiver }, @@ -3264,15 +3257,9 @@ namespace LuaUnit { "CountPctFromMaxHealth", &LuaUnit::CountPctFromMaxHealth }, { "Dismount", &LuaUnit::Dismount }, { "Mount", &LuaUnit::Mount }, - { "RestoreDisplayId", nullptr }, // not implemented - { "RestoreFaction", nullptr }, //not implemented - { "RemoveBindSightAuras", nullptr }, // not implemented - { "RemoveCharmAuras", nullptr }, // not implemented { "ClearThreatList", &LuaUnit::ClearThreatList }, { "ClearUnitState", &LuaUnit::ClearUnitState }, { "AddUnitState", &LuaUnit::AddUnitState }, - { "DisableMelee", nullptr }, // not implemented - { "SummonGuardian", nullptr }, // not implemented { "NearTeleport", &LuaUnit::NearTeleport }, { "MoveIdle", &LuaUnit::MoveIdle }, { "MoveRandom", &LuaUnit::MoveRandom }, @@ -3295,6 +3282,21 @@ namespace LuaUnit { "MoveJump", &LuaUnit::MoveJump }, #endif + // Not implemented methods + { "GetVehicle", nullptr }, // not implemented + { "SetStunned", nullptr }, // not implemented + { "SetCanFly", nullptr }, // not implemented + { "SetVisible", nullptr }, // not implemented + { "IsVisible", nullptr }, // not implemented + { "IsMoving", nullptr }, // not implemented + { "IsFlying", nullptr }, // not implemented + { "RestoreDisplayId", nullptr }, // not implemented + { "RestoreFaction", nullptr }, //not implemented + { "RemoveBindSightAuras", nullptr }, // not implemented + { "RemoveCharmAuras", nullptr }, // not implemented + { "DisableMelee", nullptr }, // not implemented + { "SummonGuardian", nullptr }, // not implemented + { NULL, NULL } }; }; diff --git a/CMangos/VehicleMethods.h b/CMangos/VehicleMethods.h index ae18691ac8..628e7175c1 100644 --- a/CMangos/VehicleMethods.h +++ b/CMangos/VehicleMethods.h @@ -111,7 +111,7 @@ namespace LuaVehicle return 0; } - ElunaRegister VehicleMethodsOverride[] = + ElunaRegister VehicleMethods[] = { // Getters { "GetOwner", &LuaVehicle::GetOwner }, diff --git a/CMangos/WorldObjectMethods.h b/CMangos/WorldObjectMethods.h index c690351346..2869bc030a 100644 --- a/CMangos/WorldObjectMethods.h +++ b/CMangos/WorldObjectMethods.h @@ -1238,7 +1238,7 @@ namespace LuaWorldObject return 0; } - ElunaRegister WorldObjectMethodsOverride[] = + ElunaRegister WorldObjectMethods[] = { // Getters { "GetName", &LuaWorldObject::GetName }, diff --git a/CMangos/WorldPacketMethods.h b/CMangos/WorldPacketMethods.h index 87a81f9f94..8eaddba6d4 100644 --- a/CMangos/WorldPacketMethods.h +++ b/CMangos/WorldPacketMethods.h @@ -310,7 +310,7 @@ namespace LuaPacket return 0; } - ElunaRegister PacketMethodsOverride[] = + ElunaRegister PacketMethods[] = { // Getters { "GetOpcode", &LuaPacket::GetOpcode },