Debian Codegraph @

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

raw symbols SCIP
1 using Godot;
2 using Godot.NativeInterop;
3
4 partial class AllReadOnly
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 'ReadOnlyField' field.
25 /// </summary>
26 public new static readonly global::Godot.StringName @ReadOnlyField = "ReadOnlyField";
27 }
28 /// <inheritdoc/>
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 /// <summary>
51 /// Get the property information for all the properties declared in this class.
52 /// This method is used by Godot to register the available properties in the editor.
53 /// Do not call this method.
54 /// </summary>
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 }