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