First commit, step 4 completed

This commit is contained in:
bepis
2026-10-15 14:27:00 +11:00
commit 9a30efa170
5378 changed files with 1136719 additions and 0 deletions
@@ -0,0 +1,52 @@
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);