Files
SessionGoldTracker/docs/blizzard-api/Blizzard_APIDocumentationGenerated/WeatherScriptDocumentation.lua
T
2026-10-15 14:27:00 +11:00

52 lines
921 B
Lua

local WeatherScript =
{
Name = "WeatherScript",
Type = "System",
Namespace = "C_Weather",
Environment = "All",
Documentation = { "Cloudy, with a chance of documentation." },
Functions =
{
{
Name = "GetCurrentWeather",
Type = "Function",
Documentation = { "C_Weather the outlook is favorable." },
Returns =
{
{ Name = "info", Type = "WeatherInfo", Nilable = false },
},
},
},
Events =
{
{
Name = "WeatherChanged",
Type = "Event",
LiteralName = "WEATHER_CHANGED",
UniqueEvent = true,
Documentation = { "The weather has taken a turn." },
},
},
Tables =
{
{
Name = "WeatherInfo",
Type = "Structure",
Fields =
{
{ Name = "type", Type = "WeatherType", Nilable = false, Default = "Clear" },
{ Name = "intensity", Type = "number", Nilable = false },
},
},
},
Predicates =
{
},
};
APIDocumentation:AddDocumentationTable(WeatherScript);