using Godot; using Godot.NativeInterop; partial class ScriptBoilerplate { #pragma warning disable CS0109 // Disable warning about redundant 'new' keyword /// /// Cached StringNames for the methods contained in this class, for fast lookup. /// public new class MethodName : global::Godot.Node.MethodName { /// /// Cached name for the '_Process' method. /// public new static readonly global::Godot.StringName @_Process = "_Process"; /// /// Cached name for the 'Bazz' method. /// public new static readonly global::Godot.StringName @Bazz = "Bazz"; } /// /// Get the method information for all the methods declared in this class. /// This method is used by Redot to register the available methods in the editor. /// Do not call this method. /// [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] internal new static global::System.Collections.Generic.List GetGodotMethodList() { var methods = new global::System.Collections.Generic.List(2); 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)); 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)); return methods; } #pragma warning restore CS0109 /// [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret) { if (method == MethodName.@_Process && args.Count == 1) { @_Process(global::Godot.NativeInterop.VariantUtils.ConvertTo(args[0])); ret = default; return true; } if (method == MethodName.@Bazz && args.Count == 1) { var callRet = @Bazz(global::Godot.NativeInterop.VariantUtils.ConvertTo(args[0])); ret = global::Godot.NativeInterop.VariantUtils.CreateFrom(callRet); return true; } return base.InvokeGodotClassMethod(method, args, out ret); } /// [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override bool HasGodotClassMethod(in godot_string_name method) { if (method == MethodName.@_Process) { return true; } if (method == MethodName.@Bazz) { return true; } return base.HasGodotClassMethod(method); } }