| 1 |
using Godot; |
| 2 |
using Godot.NativeInterop; |
| 3 |
|
| 4 |
partial class AllWriteOnly |
| 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 @WriteOnlyProperty = "WriteOnlyProperty"; |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
public new static readonly global::Godot.StringName @_writeOnlyBackingField = "_writeOnlyBackingField"; |
| 19 |
} |
| 20 |
|
| 21 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 22 |
protected override bool SetGodotClassPropertyValue(in godot_string_name name, in godot_variant value) |
| 23 |
{ |
| 24 |
if (name == PropertyName.@WriteOnlyProperty) { |
| 25 |
this.@WriteOnlyProperty = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value); |
| 26 |
return true; |
| 27 |
} |
| 28 |
if (name == PropertyName.@_writeOnlyBackingField) { |
| 29 |
this.@_writeOnlyBackingField = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value); |
| 30 |
return true; |
| 31 |
} |
| 32 |
return base.SetGodotClassPropertyValue(name, value); |
| 33 |
} |
| 34 |
|
| 35 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 36 |
protected override bool GetGodotClassPropertyValue(in godot_string_name name, out godot_variant value) |
| 37 |
{ |
| 38 |
if (name == PropertyName.@_writeOnlyBackingField) { |
| 39 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this.@_writeOnlyBackingField); |
| 40 |
return true; |
| 41 |
} |
| 42 |
return base.GetGodotClassPropertyValue(name, out value); |
| 43 |
} |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 50 |
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList() |
| 51 |
{ |
| 52 |
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>(); |
| 53 |
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)); |
| 54 |
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)); |
| 55 |
return properties; |
| 56 |
} |
| 57 |
#pragma warning restore CS0109 |
| 58 |
} |