From 24a8d432720d57c1cd9bcb89516ea354ea4d459e Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 16 Jun 2020 11:12:57 +0200 Subject: Document Mono-specific classes This fully documents all Mono-specific classes. --- modules/mono/doc_classes/CSharpScript.xml | 5 +++++ modules/mono/doc_classes/GodotSharp.xml | 17 +++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'modules/mono/doc_classes') diff --git a/modules/mono/doc_classes/CSharpScript.xml b/modules/mono/doc_classes/CSharpScript.xml index 1eb3404f9e..e1e9d1381f 100644 --- a/modules/mono/doc_classes/CSharpScript.xml +++ b/modules/mono/doc_classes/CSharpScript.xml @@ -1,16 +1,21 @@ + A script implemented in the C# programming language (Mono-enabled builds only). + This class represents a C# script. It is the C# equivalent of the [GDScript] class and is only available in Mono-enabled Godot builds. + See also [GodotSharp]. + https://docs.godotengine.org/en/latest/getting_started/scripting/c_sharp/index.html + Returns a new instance of the script. diff --git a/modules/mono/doc_classes/GodotSharp.xml b/modules/mono/doc_classes/GodotSharp.xml index 19a08d2036..417f8ac704 100644 --- a/modules/mono/doc_classes/GodotSharp.xml +++ b/modules/mono/doc_classes/GodotSharp.xml @@ -1,8 +1,11 @@ + Bridge between Godot and the Mono runtime (Mono-enabled builds only). + This class is a bridge between Godot and the Mono runtime. It exposes several low-level operations and is only available in Mono-enabled Godot builds. + See also [CSharpScript]. @@ -11,26 +14,30 @@ - Attaches the current thread to the mono runtime. + Attaches the current thread to the Mono runtime. - Detaches the current thread from the mono runtime. + Detaches the current thread from the Mono runtime. + Returns the current MonoDomain ID. + [b]Note:[/b] The Mono runtime must be initialized for this method to work (use [method is_runtime_initialized] to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash. + Returns the scripts MonoDomain's ID. This will be the same MonoDomain ID as [method get_domain_id], unless the scripts domain isn't loaded. + [b]Note:[/b] The Mono runtime must be initialized for this method to work (use [method is_runtime_initialized] to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash. @@ -39,26 +46,28 @@ - Returns whether the domain is being finalized. + Returns [code]true[/code] if the domain is being finalized, [code]false[/code] otherwise. + Returns [code]true[/code] if the Mono runtime is initialized, [code]false[/code] otherwise. + Returns [code]true[/code] if the Mono runtime is shutting down, [code]false[/code] otherwise. - Returns whether the scripts domain is loaded. + Returns [code]true[/code] if the scripts domain is loaded, [code]false[/code] otherwise. -- cgit v1.2.3