Debian Codegraph @

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

raw symbols SCIP
1 using Godot;
2 using Godot.NativeInterop;
3
4 partial class AllWriteOnly
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 'WriteOnlyProperty' property.
13 /// </summary>
14 public new static readonly global::Godot.StringName @WriteOnlyProperty = "WriteOnlyProperty";
15 /// <summary>
16 /// Cached name for the '_writeOnlyBackingField' field.
17 /// </summary>
18 public new static readonly global::Godot.StringName @_writeOnlyBackingField = "_writeOnlyBackingField";
19 }
20 /// <inheritdoc/>
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 /// <inheritdoc/>
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 /// <summary>
45 /// Get the property information for all the properties declared in this class.
46 /// This method is used by Godot to register the available properties in the editor.
47 /// Do not call this method.
48 /// </summary>
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 }