| 1 |
using Godot; |
| 2 |
using Godot.NativeInterop; |
| 3 |
|
| 4 |
partial class MixedReadOnlyWriteOnly |
| 5 |
{ |
| 6 |
#pragma warning disable CS0109 |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
public new class PropertyName : global::Godot.GodotObject.PropertyName { |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
public new static readonly global::Godot.StringName @ReadOnlyAutoProperty = "ReadOnlyAutoProperty"; |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
public new static readonly global::Godot.StringName @ReadOnlyProperty = "ReadOnlyProperty"; |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
public new static readonly global::Godot.StringName @InitOnlyAutoProperty = "InitOnlyAutoProperty"; |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
public new static readonly global::Godot.StringName @WriteOnlyProperty = "WriteOnlyProperty"; |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
public new static readonly global::Godot.StringName @ReadOnlyField = "ReadOnlyField"; |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
public new static readonly global::Godot.StringName @_writeOnlyBackingField = "_writeOnlyBackingField"; |
| 35 |
} |
| 36 |
|
| 37 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 38 |
protected override bool SetGodotClassPropertyValue(in godot_string_name name, in godot_variant value) |
| 39 |
{ |
| 40 |
if (name == PropertyName.@WriteOnlyProperty) { |
| 41 |
this.@WriteOnlyProperty = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value); |
| 42 |
return true; |
| 43 |
} |
| 44 |
if (name == PropertyName.@_writeOnlyBackingField) { |
| 45 |
this.@_writeOnlyBackingField = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value); |
| 46 |
return true; |
| 47 |
} |
| 48 |
return base.SetGodotClassPropertyValue(name, value); |
| 49 |
} |
| 50 |
|
| 51 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 52 |
protected override bool GetGodotClassPropertyValue(in godot_string_name name, out godot_variant value) |
| 53 |
{ |
| 54 |
if (name == PropertyName.@ReadOnlyAutoProperty) { |
| 55 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.@ReadOnlyAutoProperty); |
| 56 |
return true; |
| 57 |
} |
| 58 |
if (name == PropertyName.@ReadOnlyProperty) { |
| 59 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.@ReadOnlyProperty); |
| 60 |
return true; |
| 61 |
} |
| 62 |
if (name == PropertyName.@InitOnlyAutoProperty) { |
| 63 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.@InitOnlyAutoProperty); |
| 64 |
return true; |
| 65 |
} |
| 66 |
if (name == PropertyName.@ReadOnlyField) { |
| 67 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.@ReadOnlyField); |
| 68 |
return true; |
| 69 |
} |
| 70 |
if (name == PropertyName.@_writeOnlyBackingField) { |
| 71 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this.@_writeOnlyBackingField); |
| 72 |
return true; |
| 73 |
} |
| 74 |
return base.GetGodotClassPropertyValue(name, out value); |
| 75 |
} |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 82 |
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList() |
| 83 |
{ |
| 84 |
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>(); |
| 85 |
properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.@ReadOnlyField, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false)); |
| 86 |
properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.@ReadOnlyAutoProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false)); |
| 87 |
properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.@ReadOnlyProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false)); |
| 88 |
properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.@InitOnlyAutoProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false)); |
| 89 |
properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.@_writeOnlyBackingField, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false)); |
| 90 |
properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.@WriteOnlyProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false)); |
| 91 |
return properties; |
| 92 |
} |
| 93 |
#pragma warning restore CS0109 |
| 94 |
} |