Debian Codegraph @

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

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