From aee4778bf7268212b918c2ef2b7a61801aaa97cf Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Tue, 13 Oct 2020 22:59:11 +0200 Subject: Added missing return types and fixed param types (#4996) --- Server/Plugins/APIDump/APIDesc.lua | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'Server/Plugins/APIDump/APIDesc.lua') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index 6cfcb9c15..f1346ffee 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -11377,6 +11377,12 @@ a_Player:OpenWindow(Window); Type = "function", }, }, + Returns = + { + { + Type = "boolean", + }, + }, Notes = "Calls the given callback function for each player. The callback function has the following signature:
function Callback({{cPlayer|cPlayer}})
", }, ForEachWorld = @@ -11388,7 +11394,13 @@ a_Player:OpenWindow(Window); Type = "function", }, }, - Notes = "Calls the given callback function for each world. The callback function has the following signature:
function Callback({{cWorld|cWorld}})
", + Returns = + { + { + Type = "boolean", + }, + }, + Notes = "Calls the given callback function for each world. The callback function has the following signature:
function Callback({{cWorld|cWorld}})
. Returns false if a callback aborts, otherwise true.", }, Get = { @@ -12521,7 +12533,7 @@ local CompressedString = cStringCompression.CompressStringGZIP("DataToCompress") }, { Name = "Port", - Type = "string", + Type = "number", }, { Name = "Path", @@ -12564,7 +12576,7 @@ local CompressedString = cStringCompression.CompressStringGZIP("DataToCompress") }, { Name = "Port", - Type = "string", + Type = "number", }, }, Notes = "Parses the Authority part of the URL. Parts that are not explicitly specified in the AuthPart are returned empty, the port is returned zero. If parsing fails, the function returns nil and an error message.", -- cgit v1.2.3