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,134 @@
local ReportSystem =
{
Name = "ReportSystem",
Type = "System",
Namespace = "C_ReportSystem",
Functions =
{
{
Name = "CanReportPlayer",
Type = "Function",
Arguments =
{
{ Name = "playerLocation", Type = "PlayerLocation", Mixin = "PlayerLocationMixin", Nilable = false },
},
Returns =
{
{ Name = "canReport", Type = "bool", Nilable = false },
},
},
{
Name = "CanReportPlayerForLanguage",
Type = "Function",
Arguments =
{
{ Name = "playerLocation", Type = "PlayerLocation", Mixin = "PlayerLocationMixin", Nilable = false },
},
Returns =
{
{ Name = "canReport", Type = "bool", Nilable = false },
},
},
{
Name = "GetMajorCategoriesForReportType",
Type = "Function",
Arguments =
{
{ Name = "reportType", Type = "ReportType", Nilable = false },
},
Returns =
{
{ Name = "majorCategories", Type = "table", InnerType = "ReportMajorCategory", Nilable = false },
},
},
{
Name = "GetMajorCategoryString",
Type = "Function",
Arguments =
{
{ Name = "majorCategory", Type = "ReportMajorCategory", Nilable = false },
},
Returns =
{
{ Name = "majorCategoryString", Type = "cstring", Nilable = false },
},
},
{
Name = "GetMinorCategoriesForReportTypeAndMajorCategory",
Type = "Function",
Arguments =
{
{ Name = "reportType", Type = "ReportType", Nilable = false },
{ Name = "majorCategory", Type = "ReportMajorCategory", Nilable = false },
},
Returns =
{
{ Name = "minorCategories", Type = "table", InnerType = "ReportMinorCategory", Nilable = false },
},
},
{
Name = "GetMinorCategoryString",
Type = "Function",
Arguments =
{
{ Name = "minorCategory", Type = "ReportMinorCategory", Nilable = false },
},
Returns =
{
{ Name = "minorCategoryString", Type = "cstring", Nilable = false },
},
},
{
Name = "ReportServerLag",
Type = "Function",
},
{
Name = "ReportStuckInCombat",
Type = "Function",
},
{
Name = "SendReport",
Type = "Function",
Documentation = { "Not allowed to be called by addons" },
Arguments =
{
{ Name = "reportInfo", Type = "ReportInfo", Mixin = "ReportInfoMixin", Nilable = false },
{ Name = "playerLocation", Type = "PlayerLocation", Mixin = "PlayerLocationMixin", Nilable = true },
},
},
},
Events =
{
{
Name = "ReportPlayerResult",
Type = "Event",
LiteralName = "REPORT_PLAYER_RESULT",
Payload =
{
{ Name = "success", Type = "bool", Nilable = false },
{ Name = "reportType", Type = "ReportType", Nilable = false },
},
},
},
Tables =
{
},
};
APIDocumentation:AddDocumentationTable(ReportSystem);