| 1 |
using Godot; |
| 2 |
using Godot.NativeInterop; |
| 3 |
|
| 4 |
partial class ScriptBoilerplate |
| 5 |
{ |
| 6 |
#pragma warning disable CS0109 |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
public new class MethodName : global::Godot.Node.MethodName { |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
public new static readonly global::Godot.StringName @_Process = "_Process"; |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
public new static readonly global::Godot.StringName @Bazz = "Bazz"; |
| 19 |
} |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 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 |
|
| 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 |
|
| 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 |
} |