Commit 1d5fffcc authored by TOM_RUS's avatar TOM_RUS

WOW-35256patch9.0.1_Beta

parent 484923d0
......@@ -123,6 +123,15 @@ local BarberShop =
{ Name = "dressedState", Type = "bool", Nilable = false },
},
},
{
Name = "SetSelectedSex",
Type = "Function",
Arguments =
{
{ Name = "sex", Type = "number", Nilable = false },
},
},
{
Name = "SetViewingAlteredForm",
Type = "Function",
......
......@@ -46,7 +46,8 @@ local CharacterCustomizationShared =
{
{ Name = "id", Type = "number", Nilable = false },
{ Name = "name", Type = "string", Nilable = false },
{ Name = "swatchColor", Type = "table", Mixin = "ColorMixin", Nilable = true },
{ Name = "swatchColor1", Type = "table", Mixin = "ColorMixin", Nilable = true },
{ Name = "swatchColor2", Type = "table", Mixin = "ColorMixin", Nilable = true },
},
},
{
......
local DamageConstants =
{
Tables =
{
{
Name = "Damageclass",
Type = "Enumeration",
NumValues = 44,
MinValue = 0,
MaxValue = 127,
Fields =
{
{ Name = "Physical", Type = "Damageclass", EnumValue = 0 },
{ Name = "Holy", Type = "Damageclass", EnumValue = 1 },
{ Name = "Fire", Type = "Damageclass", EnumValue = 2 },
{ Name = "Nature", Type = "Damageclass", EnumValue = 3 },
{ Name = "Frost", Type = "Damageclass", EnumValue = 4 },
{ Name = "Shadow", Type = "Damageclass", EnumValue = 5 },
{ Name = "Arcane", Type = "Damageclass", EnumValue = 6 },
{ Name = "FirstResist", Type = "Damageclass", EnumValue = 2 },
{ Name = "LastResist", Type = "Damageclass", EnumValue = 6 },
{ Name = "MaskPhysical", Type = "Damageclass", EnumValue = 1 },
{ Name = "MaskHoly", Type = "Damageclass", EnumValue = 2 },
{ Name = "MaskFire", Type = "Damageclass", EnumValue = 4 },
{ Name = "MaskNature", Type = "Damageclass", EnumValue = 8 },
{ Name = "MaskFrost", Type = "Damageclass", EnumValue = 16 },
{ Name = "MaskShadow", Type = "Damageclass", EnumValue = 32 },
{ Name = "MaskArcane", Type = "Damageclass", EnumValue = 64 },
{ Name = "AllPhysical", Type = "Damageclass", EnumValue = 1 },
{ Name = "AllMagical", Type = "Damageclass", EnumValue = 126 },
{ Name = "All", Type = "Damageclass", EnumValue = 127 },
{ Name = "MaskFlamestrike", Type = "Damageclass", EnumValue = 5 },
{ Name = "MaskFroststrike", Type = "Damageclass", EnumValue = 17 },
{ Name = "MaskSpellstrike", Type = "Damageclass", EnumValue = 65 },
{ Name = "MaskShadowstrike", Type = "Damageclass", EnumValue = 33 },
{ Name = "MaskStormstrike", Type = "Damageclass", EnumValue = 9 },
{ Name = "MaskHolystrike", Type = "Damageclass", EnumValue = 3 },
{ Name = "MaskFrostfire", Type = "Damageclass", EnumValue = 20 },
{ Name = "MaskSpellfire", Type = "Damageclass", EnumValue = 68 },
{ Name = "MaskFirestorm", Type = "Damageclass", EnumValue = 12 },
{ Name = "MaskShadowflame", Type = "Damageclass", EnumValue = 36 },
{ Name = "MaskHolyfire", Type = "Damageclass", EnumValue = 6 },
{ Name = "MaskSpellfrost", Type = "Damageclass", EnumValue = 80 },
{ Name = "MaskFroststorm", Type = "Damageclass", EnumValue = 24 },
{ Name = "MaskShadowfrost", Type = "Damageclass", EnumValue = 48 },
{ Name = "MaskHolyfrost", Type = "Damageclass", EnumValue = 18 },
{ Name = "MaskSpellstorm", Type = "Damageclass", EnumValue = 72 },
{ Name = "MaskSpellshadow", Type = "Damageclass", EnumValue = 96 },
{ Name = "MaskDivine", Type = "Damageclass", EnumValue = 66 },
{ Name = "MaskShadowstorm", Type = "Damageclass", EnumValue = 40 },
{ Name = "MaskHolystorm", Type = "Damageclass", EnumValue = 10 },
{ Name = "MaskTwilight", Type = "Damageclass", EnumValue = 34 },
{ Name = "MaskElemental", Type = "Damageclass", EnumValue = 28 },
{ Name = "MaskChromatic", Type = "Damageclass", EnumValue = 62 },
{ Name = "MaskMagical", Type = "Damageclass", EnumValue = 126 },
{ Name = "MaskChaos", Type = "Damageclass", EnumValue = 124 },
},
},
{
Name = "DamageclassType",
Type = "Enumeration",
NumValues = 2,
MinValue = 0,
MaxValue = 1,
Fields =
{
{ Name = "Physical", Type = "DamageclassType", EnumValue = 0 },
{ Name = "Magical", Type = "DamageclassType", EnumValue = 1 },
},
},
{
Name = "EnvironmentalDamageFlags",
Type = "Enumeration",
NumValues = 2,
MinValue = 1,
MaxValue = 2,
Fields =
{
{ Name = "OneTime", Type = "EnvironmentalDamageFlags", EnumValue = 1 },
{ Name = "DmgIsPct", Type = "EnvironmentalDamageFlags", EnumValue = 2 },
},
},
{
Name = "Environmentaldamagetype",
Type = "Enumeration",
NumValues = 6,
MinValue = 0,
MaxValue = 5,
Fields =
{
{ Name = "Fatigue", Type = "Environmentaldamagetype", EnumValue = 0 },
{ Name = "Drowning", Type = "Environmentaldamagetype", EnumValue = 1 },
{ Name = "Falling", Type = "Environmentaldamagetype", EnumValue = 2 },
{ Name = "Lava", Type = "Environmentaldamagetype", EnumValue = 3 },
{ Name = "Slime", Type = "Environmentaldamagetype", EnumValue = 4 },
{ Name = "Fire", Type = "Environmentaldamagetype", EnumValue = 5 },
},
},
},
};
APIDocumentation:AddDocumentationTable(DamageConstants);
\ No newline at end of file
local GamePad =
{
Name = "GamePad",
Type = "System",
Namespace = "C_GamePad",
Functions =
{
{
Name = "ApplyConfigs",
Type = "Function",
},
{
Name = "AxisIndexToConfigName",
Type = "Function",
Arguments =
{
{ Name = "axisIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "configName", Type = "string", Nilable = true },
},
},
{
Name = "ButtonBindingToIndex",
Type = "Function",
Arguments =
{
{ Name = "bindingName", Type = "string", Nilable = false },
},
Returns =
{
{ Name = "buttonIndex", Type = "number", Nilable = true },
},
},
{
Name = "ButtonIndexToBinding",
Type = "Function",
Arguments =
{
{ Name = "buttonIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "bindingName", Type = "string", Nilable = true },
},
},
{
Name = "ButtonIndexToConfigName",
Type = "Function",
Arguments =
{
{ Name = "buttonIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "configName", Type = "string", Nilable = true },
},
},
{
Name = "DeleteConfig",
Type = "Function",
Arguments =
{
{ Name = "configID", Type = "GamePadConfigID", Nilable = false },
},
},
{
Name = "GetActiveDeviceID",
Type = "Function",
Returns =
{
{ Name = "deviceID", Type = "number", Nilable = false },
},
},
{
Name = "GetAllConfigIDs",
Type = "Function",
Returns =
{
{ Name = "configIDs", Type = "table", InnerType = "GamePadConfigID", Nilable = false },
},
},
{
Name = "GetAllDeviceIDs",
Type = "Function",
Returns =
{
{ Name = "deviceIDs", Type = "table", InnerType = "number", Nilable = false },
},
},
{
Name = "GetCombinedDeviceID",
Type = "Function",
Returns =
{
{ Name = "deviceID", Type = "number", Nilable = false },
},
},
{
Name = "GetConfig",
Type = "Function",
Arguments =
{
{ Name = "configID", Type = "GamePadConfigID", Nilable = false },
},
Returns =
{
{ Name = "config", Type = "GamePadConfig", Nilable = true },
},
},
{
Name = "GetDeviceMappedState",
Type = "Function",
Arguments =
{
{ Name = "deviceID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "state", Type = "GamePadMappedState", Nilable = true },
},
},
{
Name = "GetDeviceRawState",
Type = "Function",
Arguments =
{
{ Name = "deviceID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "rawState", Type = "GamePadRawState", Nilable = true },
},
},
{
Name = "IsEnabled",
Type = "Function",
Returns =
{
{ Name = "enabled", Type = "bool", Nilable = false },
},
},
{
Name = "SetConfig",
Type = "Function",
Arguments =
{
{ Name = "config", Type = "GamePadConfig", Nilable = false },
},
},
{
Name = "StickIndexToConfigName",
Type = "Function",
Arguments =
{
{ Name = "stickIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "configName", Type = "string", Nilable = true },
},
},
},
Events =
{
{
Name = "GamePadConfigsChanged",
Type = "Event",
LiteralName = "GAME_PAD_CONFIGS_CHANGED",
},
{
Name = "GamePadConnected",
Type = "Event",
LiteralName = "GAME_PAD_CONNECTED",
},
{
Name = "GamePadDisconnected",
Type = "Event",
LiteralName = "GAME_PAD_DISCONNECTED",
},
},
Tables =
{
{
Name = "GamePadAxisConfig",
Type = "Structure",
Fields =
{
{ Name = "axis", Type = "string", Nilable = false },
{ Name = "shift", Type = "number", Nilable = true },
{ Name = "scale", Type = "number", Nilable = true },
{ Name = "deadzone", Type = "number", Nilable = true },
{ Name = "buttonThreshold", Type = "number", Nilable = true },
{ Name = "buttonPos", Type = "string", Nilable = true },
{ Name = "buttonNeg", Type = "string", Nilable = true },
{ Name = "comment", Type = "string", Nilable = true },
},
},
{
Name = "GamePadConfig",
Type = "Structure",
Fields =
{
{ Name = "comment", Type = "string", Nilable = true },
{ Name = "name", Type = "string", Nilable = true },
{ Name = "configID", Type = "GamePadConfigID", Nilable = false },
{ Name = "rawButtonMappings", Type = "table", InnerType = "GamePadRawButtonMapping", Nilable = false },
{ Name = "rawAxisMappings", Type = "table", InnerType = "GamePadRawAxisMapping", Nilable = false },
{ Name = "axisConfigs", Type = "table", InnerType = "GamePadAxisConfig", Nilable = false },
{ Name = "stickConfigs", Type = "table", InnerType = "GamePadStickConfig", Nilable = false },
},
},
{
Name = "GamePadConfigID",
Type = "Structure",
Fields =
{
{ Name = "vendorID", Type = "number", Nilable = true },
{ Name = "productID", Type = "number", Nilable = true },
},
},
{
Name = "GamePadMappedState",
Type = "Structure",
Fields =
{
{ Name = "name", Type = "string", Nilable = false },
{ Name = "buttonCount", Type = "number", Nilable = false },
{ Name = "axisCount", Type = "number", Nilable = false },
{ Name = "stickCount", Type = "number", Nilable = false },
{ Name = "buttons", Type = "table", InnerType = "bool", Nilable = false },
{ Name = "axes", Type = "table", InnerType = "number", Nilable = false },
{ Name = "sticks", Type = "table", InnerType = "GamePadStick", Nilable = false },
},
},
{
Name = "GamePadRawAxisMapping",
Type = "Structure",
Fields =
{
{ Name = "rawIndex", Type = "number", Nilable = false },
{ Name = "axis", Type = "string", Nilable = true },
{ Name = "comment", Type = "string", Nilable = true },
},
},
{
Name = "GamePadRawButtonMapping",
Type = "Structure",
Fields =
{
{ Name = "rawIndex", Type = "number", Nilable = false },
{ Name = "button", Type = "string", Nilable = true },
{ Name = "axis", Type = "string", Nilable = true },
{ Name = "axisValue", Type = "number", Nilable = true },
{ Name = "comment", Type = "string", Nilable = true },
},
},
{
Name = "GamePadRawState",
Type = "Structure",
Fields =
{
{ Name = "name", Type = "string", Nilable = false },
{ Name = "vendorID", Type = "number", Nilable = false },
{ Name = "productID", Type = "number", Nilable = false },
{ Name = "rawButtonCount", Type = "number", Nilable = false },
{ Name = "rawAxisCount", Type = "number", Nilable = false },
{ Name = "rawButtons", Type = "table", InnerType = "bool", Nilable = false },
{ Name = "rawAxes", Type = "table", InnerType = "number", Nilable = false },
},
},
{
Name = "GamePadStick",
Type = "Structure",
Fields =
{
{ Name = "x", Type = "number", Nilable = false },
{ Name = "y", Type = "number", Nilable = false },
{ Name = "len", Type = "number", Nilable = false },
},
},
{
Name = "GamePadStickConfig",
Type = "Structure",
Fields =
{
{ Name = "stick", Type = "string", Nilable = false },
{ Name = "axisX", Type = "string", Nilable = true },
{ Name = "axisY", Type = "string", Nilable = true },
{ Name = "deadzone", Type = "number", Nilable = true },
{ Name = "comment", Type = "string", Nilable = true },
},
},
},
};
APIDocumentation:AddDocumentationTable(GamePad);
\ No newline at end of file
......@@ -19,6 +19,20 @@ local LegendaryCrafting =
{ Name = "description", Type = "RuneforgeLegendaryCraftDescription", Nilable = false },
},
},
{
Name = "GetRuneforgeLegendaryComponentInfo",
Type = "Function",
Arguments =
{
{ Name = "runeforgeLegendary", Type = "table", Mixin = "ItemLocationMixin", Nilable = false },
},
Returns =
{
{ Name = "componentInfo", Type = "RuneforgeLegendaryComponentInfo", Nilable = false },
},
},
{
Name = "GetRuneforgeLegendaryCost",
Type = "Function",
......@@ -51,6 +65,21 @@ local LegendaryCrafting =
{ Name = "currencies", Type = "table", InnerType = "number", Nilable = false },
},
},
{
Name = "GetRuneforgeLegendaryUpgradeCost",
Type = "Function",
Arguments =
{
{ Name = "runeforgeLegendary", Type = "table", Mixin = "ItemLocationMixin", Nilable = false },
{ Name = "upgradeItem", Type = "table", Mixin = "ItemLocationMixin", Nilable = false },
},
Returns =
{
{ Name = "cost", Type = "table", InnerType = "CurrencyCost", Nilable = false },
},
},
{
Name = "GetRuneforgeModifierInfo",
Type = "Function",
......@@ -106,6 +135,35 @@ local LegendaryCrafting =
{ Name = "runeforgePowerIDs", Type = "table", InnerType = "number", Nilable = false },
},
},
{
Name = "IsRuneforgeLegendary",
Type = "Function",
Arguments =
{
{ Name = "item", Type = "table", Mixin = "ItemLocationMixin", Nilable = false },
},
Returns =
{
{ Name = "isRuneforgeLegendary", Type = "bool", Nilable = false },
},
},
{
Name = "IsUpgradeItemValidForRuneforgeLegendary",
Type = "Function",
Arguments =
{
{ Name = "runeforgeLegendary", Type = "table", Mixin = "ItemLocationMixin", Nilable = false },
{ Name = "upgradeItem", Type = "table", Mixin = "ItemLocationMixin", Nilable = false },
},
Returns =
{
{ Name = "isValid", Type = "bool", Nilable = false },
},
},
{
Name = "IsValidRuneforgeBaseItem",
Type = "Function",
......@@ -136,6 +194,16 @@ local LegendaryCrafting =
{ Name = "description", Type = "RuneforgeLegendaryCraftDescription", Nilable = false },
},
},
{
Name = "UpgradeRuneforgeLegendary",
Type = "Function",
Arguments =
{
{ Name = "runeforgeLegendary", Type = "table", Mixin = "ItemLocationMixin", Nilable = false },
{ Name = "upgradeItem", Type = "table", Mixin = "ItemLocationMixin", Nilable = false },
},
},
},
Events =
......@@ -149,6 +217,10 @@ local LegendaryCrafting =
Name = "RuneforgeLegendaryCraftingOpened",
Type = "Event",
LiteralName = "RUNEFORGE_LEGENDARY_CRAFTING_OPENED",
Payload =
{