Debian Codegraph @

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/OuterClass.NestedClass_ScriptMethods.generated.cs

raw symbols SCIP
1 using Godot;
2 using Godot.NativeInterop;
3
4 partial struct OuterClass
5 {
6 partial class NestedClass
7 {
8 #pragma warning disable CS0109 // Disable warning about redundant 'new' keyword
9 /// <summary>
10 /// Cached StringNames for the methods contained in this class, for fast lookup.
11 /// </summary>
12 public new class MethodName : global::Godot.RefCounted.MethodName {
13 /// <summary>
14 /// Cached name for the '_Get' method.
15 /// </summary>
16 public new static readonly global::Godot.StringName @_Get = "_Get";
17 }
18 /// <summary>
19 /// Get the method information for all the methods declared in this class.
20 /// This method is used by Godot to register the available methods in the editor.
21 /// Do not call this method.
22 /// </summary>
23 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
24 internal new static global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo> GetGodotMethodList()
25 {
26 var methods = new global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo>(1);
27 methods.Add(new(name: MethodName.@_Get, returnVal: new(type: (global::Godot.Variant.Type)0, name: "", hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)131078, exported: false), flags: (global::Godot.MethodFlags)1, arguments: new() { new(type: (global::Godot.Variant.Type)21, name: "property", hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)6, exported: false), }, defaultArguments: null));
28 return methods;
29 }
30 #pragma warning restore CS0109
31 /// <inheritdoc/>
32 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
33 protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)
34 {
35 if (method == MethodName.@_Get && args.Count == 1) {
36 var callRet = @_Get(global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.StringName>(args[0]));
37 ret = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Variant>(callRet);
38 return true;
39 }
40 return base.InvokeGodotClassMethod(method, args, out ret);
41 }
42 /// <inheritdoc/>
43 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
44 protected override bool HasGodotClassMethod(in godot_string_name method)
45 {
46 if (method == MethodName.@_Get) {
47 return true;
48 }
49 return base.HasGodotClassMethod(method);
50 }
51 }
52 }