Include Blizzard_APIDocumentation and Search API Button to Code Editor with Wrath Classic Data (#57)

This commit is contained in:
NoM0Re
2025-07-05 19:08:53 +02:00
committed by GitHub
parent ad68aa2f97
commit 0971189346
319 changed files with 47180 additions and 18 deletions
@@ -0,0 +1,132 @@
local LossOfControl =
{
Name = "LossOfControl",
Type = "System",
Namespace = "C_LossOfControl",
Functions =
{
{
Name = "GetActiveLossOfControlData",
Type = "Function",
Arguments =
{
{ Name = "index", Type = "luaIndex", Nilable = false },
},
Returns =
{
{ Name = "event", Type = "LossOfControlData", Nilable = true },
},
},
{
Name = "GetActiveLossOfControlDataByUnit",
Type = "Function",
Arguments =
{
{ Name = "unitToken", Type = "UnitToken", Nilable = false },
{ Name = "index", Type = "luaIndex", Nilable = false },
},
Returns =
{
{ Name = "event", Type = "LossOfControlData", Nilable = true },
},
},
{
Name = "GetActiveLossOfControlDataCount",
Type = "Function",
Returns =
{
{ Name = "count", Type = "number", Nilable = false },
},
},
{
Name = "GetActiveLossOfControlDataCountByUnit",
Type = "Function",
Arguments =
{
{ Name = "unitToken", Type = "UnitToken", Nilable = false },
},
Returns =
{
{ Name = "count", Type = "number", Nilable = false },
},
},
},
Events =
{
{
Name = "LossOfControlAdded",
Type = "Event",
LiteralName = "LOSS_OF_CONTROL_ADDED",
Payload =
{
{ Name = "effectIndex", Type = "luaIndex", Nilable = false },
},
},
{
Name = "LossOfControlCommentatorAdded",
Type = "Event",
LiteralName = "LOSS_OF_CONTROL_COMMENTATOR_ADDED",
Payload =
{
{ Name = "victim", Type = "WOWGUID", Nilable = false },
{ Name = "effectIndex", Type = "luaIndex", Nilable = false },
},
},
{
Name = "LossOfControlCommentatorUpdate",
Type = "Event",
LiteralName = "LOSS_OF_CONTROL_COMMENTATOR_UPDATE",
Payload =
{
{ Name = "victim", Type = "WOWGUID", Nilable = false },
},
},
{
Name = "LossOfControlUpdate",
Type = "Event",
LiteralName = "LOSS_OF_CONTROL_UPDATE",
},
{
Name = "PlayerControlGained",
Type = "Event",
LiteralName = "PLAYER_CONTROL_GAINED",
},
{
Name = "PlayerControlLost",
Type = "Event",
LiteralName = "PLAYER_CONTROL_LOST",
},
},
Tables =
{
{
Name = "LossOfControlData",
Type = "Structure",
Fields =
{
{ Name = "locType", Type = "cstring", Nilable = false },
{ Name = "spellID", Type = "number", Nilable = false },
{ Name = "displayText", Type = "cstring", Nilable = false },
{ Name = "iconTexture", Type = "number", Nilable = false },
{ Name = "startTime", Type = "number", Nilable = true },
{ Name = "timeRemaining", Type = "number", Nilable = true },
{ Name = "duration", Type = "number", Nilable = true },
{ Name = "lockoutSchool", Type = "number", Nilable = false },
{ Name = "priority", Type = "number", Nilable = false },
{ Name = "displayType", Type = "number", Nilable = false },
},
},
},
};
APIDocumentation:AddDocumentationTable(LossOfControl);