Debian Codegraph @

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/MixedReadOnlyWriteOnly_ScriptProperties.generated.cs

raw symbols SCIP
1 using Godot;
2 using Godot.NativeInterop;
3
4 partial class MixedReadOnlyWriteOnly
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.GodotObject.PropertyName {
11 /// <summary>
12 /// Cached name for the 'ReadOnlyAutoProperty' property.
13 /// </summary>
14 public new static readonly global::Godot.StringName @ReadOnlyAutoProperty = "ReadOnlyAutoProperty";
15 /// <summary>
16 /// Cached name for the 'ReadOnlyProperty' property.
17 /// </summary>
18 public new static readonly global::Godot.StringName @ReadOnlyProperty = "ReadOnlyProperty";
19 /// <summary>
20 /// Cached name for the 'InitOnlyAutoProperty' property.
21 /// </summary>
22 public new static readonly global::Godot.StringName @InitOnlyAutoProperty = "InitOnlyAutoProperty";
23 /// <summary>
24 /// Cached name for the 'WriteOnlyProperty' property.
25 /// </summary>
26 public new static readonly global::Godot.StringName @WriteOnlyProperty = "WriteOnlyProperty";
27 /// <summary>
28 /// Cached name for the 'ReadOnlyField' field.
29 /// </summary>
30 public new static readonly global::Godot.StringName @ReadOnlyField = "ReadOnlyField";
31 /// <summary>
32 /// Cached name for the '_writeOnlyBackingField' field.
33 /// </summary>
34 public new static readonly global::Godot.StringName @_writeOnlyBackingField = "_writeOnlyBackingField";
35 }
36 /// <inheritdoc/>
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 /// <inheritdoc/>
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 /// <summary>
77 /// Get the property information for all the properties declared in this class.
78 /// This method is used by Godot to register the available properties in the editor.
79 /// Do not call this method.
80 /// </summary>
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 }