| 1 |
using Godot; |
| 2 |
using Godot.NativeInterop; |
| 3 |
|
| 4 |
partial class AllReadOnly |
| 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 @ReadOnlyField = "ReadOnlyField"; |
| 27 |
} |
| 28 |
|
| 29 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 30 |
protected override bool GetGodotClassPropertyValue(in godot_string_name name, out godot_variant value) |
| 31 |
{ |
| 32 |
if (name == PropertyName.@ReadOnlyAutoProperty) { |
| 33 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.@ReadOnlyAutoProperty); |
| 34 |
return true; |
| 35 |
} |
| 36 |
if (name == PropertyName.@ReadOnlyProperty) { |
| 37 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.@ReadOnlyProperty); |
| 38 |
return true; |
| 39 |
} |
| 40 |
if (name == PropertyName.@InitOnlyAutoProperty) { |
| 41 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.@InitOnlyAutoProperty); |
| 42 |
return true; |
| 43 |
} |
| 44 |
if (name == PropertyName.@ReadOnlyField) { |
| 45 |
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.@ReadOnlyField); |
| 46 |
return true; |
| 47 |
} |
| 48 |
return base.GetGodotClassPropertyValue(name, out value); |
| 49 |
} |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 56 |
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList() |
| 57 |
{ |
| 58 |
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>(); |
| 59 |
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)); |
| 60 |
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)); |
| 61 |
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)); |
| 62 |
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)); |
| 63 |
return properties; |
| 64 |
} |
| 65 |
#pragma warning restore CS0109 |
| 66 |
} |