From 1614aa17d3c27de49220043cd4830fe6c8f4fbd0 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Wed, 5 Apr 2017 16:30:06 +0200 Subject: [PATCH] APIDoc: Added missing IsStatic flags and corrected param types. --- Server/Plugins/APIDump/APIDesc.lua | 4 ++++ Server/Plugins/APIDump/Classes/Geometry.lua | 8 ++++---- Server/Plugins/APIDump/Classes/World.lua | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index c2c75628c..482c85f9e 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -9550,6 +9550,7 @@ end { Parse = { + IsStatic = true, Params = { { @@ -9567,6 +9568,7 @@ end }, Serialize = { + IsStatic = true, Params = { { @@ -12620,6 +12622,7 @@ a_Player:OpenWindow(Window); }, GetPhysicalRAMUsage = { + IsStatic = true, Returns = { { @@ -12698,6 +12701,7 @@ a_Player:OpenWindow(Window); }, GetVirtualRAMUsage = { + IsStatic = true, Returns = { { diff --git a/Server/Plugins/APIDump/Classes/Geometry.lua b/Server/Plugins/APIDump/Classes/Geometry.lua index 44f5a7313..cd7793ee9 100644 --- a/Server/Plugins/APIDump/Classes/Geometry.lua +++ b/Server/Plugins/APIDump/Classes/Geometry.lua @@ -2245,16 +2245,16 @@ end { { Name = "Other", - Type = "Vector3d", + Type = "Vector3i", }, }, Returns = { { - Type = "Vector3d", + Type = "Vector3i", }, }, - Notes = "Returns a new Vector3d that is a {{http://en.wikipedia.org/wiki/Cross_product|cross product}} of this vector and the specified vector.", + Notes = "Returns a new Vector3i that is a {{http://en.wikipedia.org/wiki/Cross_product|cross product}} of this vector and the specified vector.", }, Dot = { @@ -2262,7 +2262,7 @@ end { { Name = "Other", - Type = "Vector3d", + Type = "Vector3i", }, }, Returns = diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua index 2733410e4..62bae0794 100644 --- a/Server/Plugins/APIDump/Classes/World.lua +++ b/Server/Plugins/APIDump/Classes/World.lua @@ -2722,7 +2722,7 @@ function OnAllChunksAvailable() All return values from the callbacks are i }, SetShouldUseChatPrefixes = { - Returns = + Params = { { Name = "ShouldUseChatPrefixes",