|
| 1 | +using Godot; |
| 2 | +using Godot.NativeInterop; |
| 3 | + |
| 4 | +partial class ExportDiagnostics_GD0111 |
| 5 | +{ |
| 6 | +#pragma warning disable CS0109 // Disable warning about redundant 'new' keyword |
| 7 | + /// <summary> |
| 8 | + /// Cached StringNames for the properties and fields contained in this class, for fast lookup. |
| 9 | + /// </summary> |
| 10 | + public new class PropertyName : global::Godot.Node.PropertyName { |
| 11 | + /// <summary> |
| 12 | + /// Cached name for the 'MyButtonGet' property. |
| 13 | + /// </summary> |
| 14 | + public new static readonly global::Godot.StringName @MyButtonGet = "MyButtonGet"; |
| 15 | + /// <summary> |
| 16 | + /// Cached name for the 'MyButtonGetSet' property. |
| 17 | + /// </summary> |
| 18 | + public new static readonly global::Godot.StringName @MyButtonGetSet = "MyButtonGetSet"; |
| 19 | + /// <summary> |
| 20 | + /// Cached name for the 'MyButtonGetWithBackingField' property. |
| 21 | + /// </summary> |
| 22 | + public new static readonly global::Godot.StringName @MyButtonGetWithBackingField = "MyButtonGetWithBackingField"; |
| 23 | + /// <summary> |
| 24 | + /// Cached name for the 'MyButtonGetSetWithBackingField' property. |
| 25 | + /// </summary> |
| 26 | + public new static readonly global::Godot.StringName @MyButtonGetSetWithBackingField = "MyButtonGetSetWithBackingField"; |
| 27 | + /// <summary> |
| 28 | + /// Cached name for the 'MyButtonOkWithCallableCreationExpression' property. |
| 29 | + /// </summary> |
| 30 | + public new static readonly global::Godot.StringName @MyButtonOkWithCallableCreationExpression = "MyButtonOkWithCallableCreationExpression"; |
| 31 | + /// <summary> |
| 32 | + /// Cached name for the 'MyButtonOkWithImplicitCallableCreationExpression' property. |
| 33 | + /// </summary> |
| 34 | + public new static readonly global::Godot.StringName @MyButtonOkWithImplicitCallableCreationExpression = "MyButtonOkWithImplicitCallableCreationExpression"; |
| 35 | + /// <summary> |
| 36 | + /// Cached name for the 'MyButtonOkWithCallableFromExpression' property. |
| 37 | + /// </summary> |
| 38 | + public new static readonly global::Godot.StringName @MyButtonOkWithCallableFromExpression = "MyButtonOkWithCallableFromExpression"; |
| 39 | + /// <summary> |
| 40 | + /// Cached name for the '_backingField' field. |
| 41 | + /// </summary> |
| 42 | + public new static readonly global::Godot.StringName @_backingField = "_backingField"; |
| 43 | + } |
| 44 | + /// <inheritdoc/> |
| 45 | + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 46 | + protected override bool SetGodotClassPropertyValue(in godot_string_name name, in godot_variant value) |
| 47 | + { |
| 48 | + if (name == PropertyName.@MyButtonGetSet) { |
| 49 | + this.@MyButtonGetSet = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Callable>(value); |
| 50 | + return true; |
| 51 | + } |
| 52 | + if (name == PropertyName.@MyButtonGetSetWithBackingField) { |
| 53 | + this.@MyButtonGetSetWithBackingField = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Callable>(value); |
| 54 | + return true; |
| 55 | + } |
| 56 | + if (name == PropertyName.@_backingField) { |
| 57 | + this.@_backingField = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Callable>(value); |
| 58 | + return true; |
| 59 | + } |
| 60 | + return base.SetGodotClassPropertyValue(name, value); |
| 61 | + } |
| 62 | + /// <inheritdoc/> |
| 63 | + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 64 | + protected override bool GetGodotClassPropertyValue(in godot_string_name name, out godot_variant value) |
| 65 | + { |
| 66 | + if (name == PropertyName.@MyButtonGet) { |
| 67 | + value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.@MyButtonGet); |
| 68 | + return true; |
| 69 | + } |
| 70 | + if (name == PropertyName.@MyButtonGetSet) { |
| 71 | + value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.@MyButtonGetSet); |
| 72 | + return true; |
| 73 | + } |
| 74 | + if (name == PropertyName.@MyButtonGetWithBackingField) { |
| 75 | + value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.@MyButtonGetWithBackingField); |
| 76 | + return true; |
| 77 | + } |
| 78 | + if (name == PropertyName.@MyButtonGetSetWithBackingField) { |
| 79 | + value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.@MyButtonGetSetWithBackingField); |
| 80 | + return true; |
| 81 | + } |
| 82 | + if (name == PropertyName.@MyButtonOkWithCallableCreationExpression) { |
| 83 | + value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.@MyButtonOkWithCallableCreationExpression); |
| 84 | + return true; |
| 85 | + } |
| 86 | + if (name == PropertyName.@MyButtonOkWithImplicitCallableCreationExpression) { |
| 87 | + value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.@MyButtonOkWithImplicitCallableCreationExpression); |
| 88 | + return true; |
| 89 | + } |
| 90 | + if (name == PropertyName.@MyButtonOkWithCallableFromExpression) { |
| 91 | + value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.@MyButtonOkWithCallableFromExpression); |
| 92 | + return true; |
| 93 | + } |
| 94 | + if (name == PropertyName.@_backingField) { |
| 95 | + value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.@_backingField); |
| 96 | + return true; |
| 97 | + } |
| 98 | + return base.GetGodotClassPropertyValue(name, out value); |
| 99 | + } |
| 100 | + /// <summary> |
| 101 | + /// Get the property information for all the properties declared in this class. |
| 102 | + /// This method is used by Godot to register the available properties in the editor. |
| 103 | + /// Do not call this method. |
| 104 | + /// </summary> |
| 105 | + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 106 | + internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList() |
| 107 | + { |
| 108 | + var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>(); |
| 109 | + properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.@_backingField, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false)); |
| 110 | + properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.@MyButtonOkWithCallableCreationExpression, hint: (global::Godot.PropertyHint)39, hintString: "", usage: (global::Godot.PropertyUsageFlags)4, exported: true)); |
| 111 | + properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.@MyButtonOkWithImplicitCallableCreationExpression, hint: (global::Godot.PropertyHint)39, hintString: "", usage: (global::Godot.PropertyUsageFlags)4, exported: true)); |
| 112 | + properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.@MyButtonOkWithCallableFromExpression, hint: (global::Godot.PropertyHint)39, hintString: "", usage: (global::Godot.PropertyUsageFlags)4, exported: true)); |
| 113 | + return properties; |
| 114 | + } |
| 115 | +#pragma warning restore CS0109 |
| 116 | +} |
0 commit comments