Commit 0d02b38b authored by TOM_RUS's avatar TOM_RUS
Browse files

WOW-30262patch8.2.0_PTR

parent ea76fcd0
......@@ -13,7 +13,7 @@ local AzeriteEssence =
Arguments =
{
{ Name = "essenceID", Type = "number", Nilable = false },
{ Name = "slot", Type = "AzeriteEssence", Nilable = false },
{ Name = "milestoneID", Type = "number", Nilable = false },
},
},
{
......@@ -23,7 +23,7 @@ local AzeriteEssence =
Arguments =
{
{ Name = "essenceID", Type = "number", Nilable = false },
{ Name = "slot", Type = "AzeriteEssence", Nilable = false },
{ Name = "milestoneID", Type = "number", Nilable = false },
},
Returns =
......@@ -49,26 +49,18 @@ local AzeriteEssence =
Type = "Function",
},
{
Name = "GetActionSpell",
Type = "Function",
Returns =
{
{ Name = "spellID", Type = "number", Nilable = false },
},
},
{
Name = "GetActiveEssence",
Name = "GetEssenceHyperlink",
Type = "Function",
Arguments =
{
{ Name = "slot", Type = "AzeriteEssence", Nilable = false },
{ Name = "essenceID", Type = "number", Nilable = false },
{ Name = "rank", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "essenceID", Type = "number", Nilable = false },
{ Name = "link", Type = "string", Nilable = false },
},
},
{
......@@ -95,28 +87,63 @@ local AzeriteEssence =
},
},
{
Name = "GetPendingActivationEssence",
Name = "GetMilestoneEssence",
Type = "Function",
Arguments =
{
{ Name = "milestoneID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "essenceID", Type = "number", Nilable = false },
},
},
{
Name = "GetSlotInfo",
Name = "GetMilestoneInfo",
Type = "Function",
Arguments =
{
{ Name = "slot", Type = "AzeriteEssence", Nilable = false },
{ Name = "milestoneID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "locked", Type = "bool", Nilable = false, Default = false },
{ Name = "unlockLevel", Type = "number", Nilable = false, Default = 0 },
{ Name = "unlockDescription", Type = "string", Nilable = true },
{ Name = "info", Type = "AzeriteMilestoneInfo", Nilable = false },
},
},
{
Name = "GetMilestoneSpell",
Type = "Function",
Arguments =
{
{ Name = "milestoneID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "spellID", Type = "number", Nilable = false },
},
},
{
Name = "GetMilestones",
Type = "Function",
Returns =
{
{ Name = "milestones", Type = "table", InnerType = "AzeriteMilestoneInfo", Nilable = false },
},
},
{
Name = "GetPendingActivationEssence",
Type = "Function",
Returns =
{
{ Name = "essenceID", Type = "number", Nilable = false },
},
},
{
......@@ -146,6 +173,15 @@ local AzeriteEssence =
{ Name = "essenceID", Type = "number", Nilable = false },
},
},
{
Name = "UnlockMilestone",
Type = "Function",
Arguments =
{
{ Name = "milestoneID", Type = "number", Nilable = false },
},
},
},
Events =
......@@ -190,6 +226,15 @@ local AzeriteEssence =
Type = "Event",
LiteralName = "AZERITE_ESSENCE_FORGE_OPEN",
},
{
Name = "AzeriteEssenceMilestoneUnlocked",
Type = "Event",
LiteralName = "AZERITE_ESSENCE_MILESTONE_UNLOCKED",
Payload =
{
{ Name = "milestoneID", Type = "number", Nilable = false },
},
},
{
Name = "AzeriteEssenceUpdate",
Type = "Event",
......@@ -234,6 +279,18 @@ local AzeriteEssence =
{ Name = "icon", Type = "number", Nilable = false },
},
},
{
Name = "AzeriteMilestoneInfo",
Type = "Structure",
Fields =
{
{ Name = "ID", Type = "number", Nilable = false },
{ Name = "requiredLevel", Type = "number", Nilable = false },
{ Name = "canUnlock", Type = "bool", Nilable = false },
{ Name = "unlocked", Type = "bool", Nilable = false },
{ Name = "slot", Type = "AzeriteEssence", Nilable = true },
},
},
},
};
......
......@@ -6,6 +6,24 @@ local ClubFinder =
Functions =
{
{
Name = "ApplicantAcceptClubInvite",
Type = "Function",
Arguments =
{
{ Name = "clubFinderGUID", Type = "string", Nilable = false },
},
},
{
Name = "ApplicantDeclineClubInvite",
Type = "Function",
Arguments =
{
{ Name = "clubFinderGUID", Type = "string", Nilable = false },
},
},
{
Name = "CancelMembershipRequest",
Type = "Function",
......@@ -19,6 +37,18 @@ local ClubFinder =
Name = "CheckAllPlayerApplicantSettings",
Type = "Function",
},
{
Name = "ClearAllFinderCache",
Type = "Function",
},
{
Name = "ClearClubApplicantsCache",
Type = "Function",
},
{
Name = "ClearClubFinderPostingsCache",
Type = "Function",
},
{
Name = "GetApplicantInfoList",
Type = "Function",
......@@ -46,13 +76,22 @@ local ClubFinder =
{ Name = "settings", Type = "ClubSettingsInfo", Nilable = false },
},
},
{
Name = "PlayerGetClubInvitationList",
Type = "Function",
Returns =
{
{ Name = "inviteList", Type = "table", InnerType = "RecruitingClubInfo", Nilable = false },
},
},
{
Name = "PlayerRequestPendingClubsList",
Type = "Function",
Arguments =
{
{ Name = "requestGuildList", Type = "bool", Nilable = false },
{ Name = "type", Type = "ClubFinderRequestType", Nilable = false },
},
},
{
......@@ -91,6 +130,11 @@ local ClubFinder =
{
Name = "RequestApplicantList",
Type = "Function",
Arguments =
{
{ Name = "type", Type = "ClubFinderRequestType", Nilable = false },
},
},
{
Name = "RequestClubsList",
......@@ -184,7 +228,7 @@ local ClubFinder =
Documentation = { "Signals when we recieve club data that can be used" },
Payload =
{
{ Name = "isGuildList", Type = "bool", Nilable = false },
{ Name = "type", Type = "ClubFinderRequestType", Nilable = false },
},
},
{
......@@ -198,7 +242,7 @@ local ClubFinder =
LiteralName = "CLUB_FINDER_PLAYER_PENDING_LIST_RECIEVED",
Payload =
{
{ Name = "isGuildList", Type = "bool", Nilable = false },
{ Name = "type", Type = "ClubFinderRequestType", Nilable = false },
},
},
{
......@@ -231,7 +275,7 @@ local ClubFinder =
{
{ Name = "None", Type = "PlayerClubRequestStatus", EnumValue = 0 },
{ Name = "Pending", Type = "PlayerClubRequestStatus", EnumValue = 1 },
{ Name = "AutoJoined", Type = "PlayerClubRequestStatus", EnumValue = 2 },
{ Name = "AutoApproved", Type = "PlayerClubRequestStatus", EnumValue = 2 },
{ Name = "Declined", Type = "PlayerClubRequestStatus", EnumValue = 3 },
{ Name = "Approved", Type = "PlayerClubRequestStatus", EnumValue = 4 },
{ Name = "Joined", Type = "PlayerClubRequestStatus", EnumValue = 5 },
......@@ -253,19 +297,6 @@ local ClubFinder =
{ Name = "Cancel", Type = "ClubFinderApplicationUpdateType", EnumValue = 3 },
},
},
{
Name = "ClubFinderReportType",
Type = "Enumeration",
NumValues = 3,
MinValue = 0,
MaxValue = 2,
Fields =
{
{ Name = "Any", Type = "ClubFinderReportType", EnumValue = 0 },
{ Name = "InapropriateName", Type = "ClubFinderReportType", EnumValue = 1 },
{ Name = "InapropriateComment", Type = "ClubFinderReportType", EnumValue = 2 },
},
},
{
Name = "ClubFinderRequestType",
Type = "Enumeration",
......@@ -280,28 +311,42 @@ local ClubFinder =
{ Name = "All", Type = "ClubFinderRequestType", EnumValue = 3 },
},
},
{
Name = "ClubFinderReportType",
Type = "Enumeration",
NumValues = 3,
MinValue = 0,
MaxValue = 2,
Fields =
{
{ Name = "Any", Type = "ClubFinderReportType", EnumValue = 0 },
{ Name = "InapropriateName", Type = "ClubFinderReportType", EnumValue = 1 },
{ Name = "InapropriateComment", Type = "ClubFinderReportType", EnumValue = 2 },
},
},
{
Name = "ClubFinderSettingFlags",
Type = "Enumeration",
NumValues = 14,
NumValues = 15,
MinValue = 0,
MaxValue = 13,
MaxValue = 14,
Fields =
{
{ Name = "None", Type = "ClubFinderSettingFlags", EnumValue = 0 },
{ Name = "MaxLevelOnly", Type = "ClubFinderSettingFlags", EnumValue = 1 },
{ Name = "AutoAccept", Type = "ClubFinderSettingFlags", EnumValue = 2 },
{ Name = "Dungeons", Type = "ClubFinderSettingFlags", EnumValue = 3 },
{ Name = "Raids", Type = "ClubFinderSettingFlags", EnumValue = 4 },
{ Name = "Pvp", Type = "ClubFinderSettingFlags", EnumValue = 5 },
{ Name = "Rp", Type = "ClubFinderSettingFlags", EnumValue = 6 },
{ Name = "Social", Type = "ClubFinderSettingFlags", EnumValue = 7 },
{ Name = "Small", Type = "ClubFinderSettingFlags", EnumValue = 8 },
{ Name = "Medium", Type = "ClubFinderSettingFlags", EnumValue = 9 },
{ Name = "Large", Type = "ClubFinderSettingFlags", EnumValue = 10 },
{ Name = "Tank", Type = "ClubFinderSettingFlags", EnumValue = 11 },
{ Name = "Healer", Type = "ClubFinderSettingFlags", EnumValue = 12 },
{ Name = "Damage", Type = "ClubFinderSettingFlags", EnumValue = 13 },
{ Name = "Dungeons", Type = "ClubFinderSettingFlags", EnumValue = 1 },
{ Name = "Raids", Type = "ClubFinderSettingFlags", EnumValue = 2 },
{ Name = "Pvp", Type = "ClubFinderSettingFlags", EnumValue = 3 },
{ Name = "Rp", Type = "ClubFinderSettingFlags", EnumValue = 4 },
{ Name = "Social", Type = "ClubFinderSettingFlags", EnumValue = 5 },
{ Name = "Small", Type = "ClubFinderSettingFlags", EnumValue = 6 },
{ Name = "Medium", Type = "ClubFinderSettingFlags", EnumValue = 7 },
{ Name = "Large", Type = "ClubFinderSettingFlags", EnumValue = 8 },
{ Name = "Tank", Type = "ClubFinderSettingFlags", EnumValue = 9 },
{ Name = "Healer", Type = "ClubFinderSettingFlags", EnumValue = 10 },
{ Name = "Damage", Type = "ClubFinderSettingFlags", EnumValue = 11 },
{ Name = "EnableListing", Type = "ClubFinderSettingFlags", EnumValue = 12 },
{ Name = "MaxLevelOnly", Type = "ClubFinderSettingFlags", EnumValue = 13 },
{ Name = "AutoAccept", Type = "ClubFinderSettingFlags", EnumValue = 14 },
},
},
{
......@@ -360,11 +405,12 @@ local ClubFinder =
{ Name = "comment", Type = "string", Nilable = false },
{ Name = "guildLeader", Type = "string", Nilable = false },
{ Name = "isGuild", Type = "bool", Nilable = false },
{ Name = "emblemInfo", Type = "number", Nilable = false },
{ Name = "tabardInfo", Type = "ClubFinderGuildTabardInfo", Nilable = true },
{ Name = "clubStatus", Type = "PlayerClubRequestStatus", Nilable = true },
{ Name = "recruitingSpecIds", Type = "table", InnerType = "number", Nilable = false },
{ Name = "cached", Type = "bool", Nilable = false },
{ Name = "cacheRequested", Type = "bool", Nilable = false },
{ Name = "cached", Type = "number", Nilable = false },
{ Name = "cacheRequested", Type = "number", Nilable = false },
},
},
},
......
......@@ -15,6 +15,20 @@ local GuildInfo =
{ Name = "canSpeakInGuildChat", Type = "bool", Nilable = false },
},
},
{
Name = "GetGuildNewsInfo",
Type = "Function",
Arguments =
{
{ Name = "index", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "newsInfo", Type = "GuildNewsInfo", Nilable = false },
},
},
{
Name = "GetGuildRankOrder",
Type = "Function",
......@@ -43,6 +57,10 @@ local GuildInfo =
{ Name = "permissions", Type = "table", InnerType = "bool", Nilable = false },
},
},
{
Name = "GuildRoster",
Type = "Function",
},
{
Name = "IsGuildRankAssignmentAllowed",
Type = "Function",
......@@ -281,6 +299,25 @@ local GuildInfo =
Tables =
{
{
Name = "GuildNewsInfo",
Type = "Structure",
Fields =
{
{ Name = "isSticky", Type = "bool", Nilable = false },
{ Name = "isHeader", Type = "bool", Nilable = false },
{ Name = "newsType", Type = "number", Nilable = false },
{ Name = "whoText", Type = "string", Nilable = true },
{ Name = "whatText", Type = "string", Nilable = true },
{ Name = "newsDataID", Type = "number", Nilable = false },
{ Name = "data", Type = "table", InnerType = "number", Nilable = false },
{ Name = "weekday", Type = "number", Nilable = false },
{ Name = "day", Type = "number", Nilable = false },
{ Name = "month", Type = "number", Nilable = false },
{ Name = "year", Type = "number", Nilable = false },
{ Name = "guildMembersPresent", Type = "number", Nilable = false },
},
},
},
};
......
......@@ -482,6 +482,24 @@ local PvpInfo =
{ Name = "isPVPMap", Type = "bool", Nilable = false },
},
},
{
Name = "IsRatedArena",
Type = "Function",
Returns =
{
{ Name = "isRatedArena", Type = "bool", Nilable = false },
},
},
{
Name = "IsRatedBattleground",
Type = "Function",
Returns =
{
{ Name = "isRatedBattleground", Type = "bool", Nilable = false },
},
},
{
Name = "IsRatedMap",
Type = "Function",
......
......@@ -39,7 +39,7 @@ local ReportSystem =
{
Name = "OpenReportPlayerDialog",
Type = "Function",
Documentation = { "Addons should use this to open the ReportPlayer dialog. InitiateReportPlayer and SendReportPlayer are no loner accessible to addons." },
Documentation = { "Addons should use this to open the ReportPlayer dialog. InitiateReportPlayer and SendReportPlayer are no longer accessible to addons." },
Arguments =
{
......
......@@ -271,6 +271,20 @@ local UIWidgetManager =
{ Name = "setID", Type = "number", Nilable = false },
},
},
{
Name = "GetZoneControlVisualizationInfo",
Type = "Function",
Arguments =
{
{ Name = "widgetID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "widgetInfo", Type = "ZoneControlVisualizationInfo", Nilable = true },
},
},
},
Events =
......@@ -376,9 +390,9 @@ local UIWidgetManager =
{
Name = "UIWidgetVisualizationType",
Type = "Enumeration",
NumValues = 16,
NumValues = 17,
MinValue = 0,
MaxValue = 15,
MaxValue = 16,
Fields =
{
{ Name = "IconAndText", Type = "UIWidgetVisualizationType", EnumValue = 0 },
......@@ -397,6 +411,7 @@ local UIWidgetManager =
{ Name = "SpellDisplay", Type = "UIWidgetVisualizationType", EnumValue = 13 },
{ Name = "DoubleStateIconRow", Type = "UIWidgetVisualizationType", EnumValue = 14 },
{ Name = "TextureAndTextRow", Type = "UIWidgetVisualizationType", EnumValue = 15 },
{ Name = "ZoneControl", Type = "UIWidgetVisualizationType", EnumValue = 16 },
},
},
{
......@@ -426,6 +441,18 @@ local UIWidgetManager =
{ Name = "Large", Type = "SpellDisplayIconSizeType", EnumValue = 2 },
},
},
{
Name = "SpellDisplayIconDisplayType",
Type = "Enumeration",
NumValues = 2,
MinValue = 0,
MaxValue = 1,
Fields =
{
{ Name = "Buff", Type = "SpellDisplayIconDisplayType", EnumValue = 0 },
{ Name = "Debuff", Type = "SpellDisplayIconDisplayType", EnumValue = 1 },
},
},
{
Name = "StatusBarOverrideBarTextShownType",
Type = "Enumeration",
......@@ -454,6 +481,44 @@ local UIWidgetManager =
{ Name = "Huge", Type = "UIWidgetTextSizeType", EnumValue = 3 },
},
},
{
Name = "ZoneControlState",
Type = "Enumeration",
NumValues = 2,
MinValue = 0,
MaxValue = 1,
Fields =
{
{ Name = "State1", Type = "ZoneControlState", EnumValue = 0 },
{ Name = "State2", Type = "ZoneControlState", EnumValue = 1 },
},
},
{
Name = "ZoneControlActiveState",
Type = "Enumeration",
NumValues = 2,
MinValue = 0,
MaxValue = 1,
Fields =
{
{ Name = "Inactive", Type = "ZoneControlActiveState", EnumValue = 0 },
{ Name = "Active", Type = "ZoneControlActiveState", EnumValue = 1 },
},
},
{
Name = "ZoneControlFillType",
Type = "Enumeration",
NumValues = 4,
MinValue = 0,
MaxValue = 3,
Fields =
{
{ Name = "SingleFillClockwise", Type = "ZoneControlFillType", EnumValue = 0 },
{ Name = "SingleFillCounterClockwise", Type = "ZoneControlFillType", EnumValue = 1 },
{ Name = "DoubleFillClockwise", Type = "ZoneControlFillType", EnumValue = 2 },
{ Name = "DoubleFillCounterClockwise", Type = "ZoneControlFillType", EnumValue = 3 },
},
},
{
Name = "WidgetCurrencyClass",
Type = "Enumeration",
......@@ -703,6 +768,10 @@ local UIWidgetManager =
{
{ Name = "spellID", Type = "number", Nilable = false },
{ Name = "tooltip", Type = "string", Nilable = false },
{ Name = "text", Type = "string", Nilable = false },
{ Name = "stackDisplay", Type = "number", Nilable = false },
{ Name = "iconSizeType", Type = "SpellDisplayIconSizeType", Nilable = false },
{ Name = "iconDisplayType", Type = "SpellDisplayIconDisplayType", Nilable = false },
},
},
{
......@@ -713,7 +782,6 @@ local UIWidgetManager =
{ Name = "shownState", Type = "WidgetShownState", Nilable = false },
{ Name = "enabledState", Type = "WidgetEnabledState", Nilable = false },
{ Name = "spellInfo", Type = "UIWidgetSpellInfo", Nilable = false },
{ Name = "iconSizeType", Type = "SpellDisplayIconSizeType", Nilable = false },
{ Name = "widgetSizeSetting", Type = "number", Nilable = false },
{ Name = "textureKitID", Type = "number"