From f8ceceed15a76e23738dfe96abd852b5d05d7b20 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Wed, 24 Aug 2022 13:56:46 +0200 Subject: Various C# documentation improvements Fixes wrong/invalid documentation and add documentation to some OS members. --- modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs | 10 ++++++++++ modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs | 2 -- modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs | 7 ++++--- modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs | 8 ++++---- modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs | 4 ++-- 5 files changed, 20 insertions(+), 11 deletions(-) (limited to 'modules/mono') diff --git a/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs b/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs index 76f0f0b784..651922d019 100644 --- a/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs +++ b/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs @@ -15,6 +15,9 @@ namespace GodotTools.Utils [SuppressMessage("ReSharper", "InconsistentNaming")] public static class OS { + /// + /// Display names for the OS platforms. + /// private static class Names { public const string Windows = "Windows"; @@ -30,6 +33,9 @@ namespace GodotTools.Utils public const string HTML5 = "HTML5"; } + /// + /// Godot platform identifiers. + /// public static class Platforms { public const string Windows = "windows"; @@ -42,6 +48,10 @@ namespace GodotTools.Utils public const string HTML5 = "javascript"; } + /// + /// OS name part of the .NET runtime identifier (RID). + /// See https://docs.microsoft.com/en-us/dotnet/core/rid-catalog. + /// public static class DotNetOS { public const string Win = "win"; diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs index 9348cc1d00..9e7da7757a 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs @@ -189,8 +189,6 @@ namespace Godot /// Pushes an error message to Godot's built-in debugger and to the OS terminal. /// /// Note: Errors printed this way will not pause project execution. - /// To print an error message and pause project execution in debug builds, - /// use [code]assert(false, "test error")[/code] instead. /// /// /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs index 08beff8104..41a0dd871c 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs @@ -754,9 +754,10 @@ namespace Godot } /// - /// Returns the [code]value[/code] wrapped between [code]0[/code] and the [code]length[/code]. - /// If the limit is reached, the next value the function returned is decreased to the [code]0[/code] side or increased to the [code]length[/code] side (like a triangle wave). - /// If [code]length[/code] is less than zero, it becomes positive. + /// Returns the wrapped between 0 and the . + /// If the limit is reached, the next value the function returned is decreased to the 0 side + /// or increased to the side (like a triangle wave). + /// If is less than zero, it becomes positive. /// /// The value to pingpong. /// The maximum value of the function. diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs index b85a105a0b..d62cb6b0fa 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs @@ -39,22 +39,22 @@ namespace Godot } /// - /// The projections's X column. Also accessible by using the index position [0]. + /// The projection's X column. Also accessible by using the index position [0]. /// public Vector4 x; /// - /// The projections's Y column. Also accessible by using the index position [1]. + /// The projection's Y column. Also accessible by using the index position [1]. /// public Vector4 y; /// - /// The projections's Z column. Also accessible by using the index position [2]. + /// The projection's Z column. Also accessible by using the index position [2]. /// public Vector4 z; /// - /// The projections's W column. Also accessible by using the index position [3]. + /// The projection's W column. Also accessible by using the index position [3]. /// public Vector4 w; diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs index 10739c02a7..b9ee0bc278 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs @@ -59,9 +59,9 @@ namespace Godot } /// - /// Constructs a from the given string. + /// Constructs a from the given string. /// - /// String to construct the from. + /// String to construct the from. public StringName(string name) { if (!string.IsNullOrEmpty(name)) -- cgit v1.2.3