using Godot; using Godot.NativeInterop; partial class InheritanceChild { #pragma warning disable CS0109 // Disable warning about redundant 'new' keyword /// /// Cached StringNames for the properties and fields contained in this class, for fast lookup. /// public new class PropertyName : global::InheritanceBase.PropertyName { /// /// Cached name for the 'MyString' property. /// public new static readonly global::Godot.StringName @MyString = "MyString"; /// /// Cached name for the 'MyInteger' property. /// public new static readonly global::Godot.StringName @MyInteger = "MyInteger"; } /// [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override bool SetGodotClassPropertyValue(in godot_string_name name, in godot_variant value) { if (name == PropertyName.@MyString) { this.@MyString = global::Godot.NativeInterop.VariantUtils.ConvertTo(value); return true; } if (name == PropertyName.@MyInteger) { this.@MyInteger = global::Godot.NativeInterop.VariantUtils.ConvertTo(value); return true; } return base.SetGodotClassPropertyValue(name, value); } /// [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override bool GetGodotClassPropertyValue(in godot_string_name name, out godot_variant value) { if (name == PropertyName.@MyString) { value = global::Godot.NativeInterop.VariantUtils.CreateFrom(this.@MyString); return true; } if (name == PropertyName.@MyInteger) { value = global::Godot.NativeInterop.VariantUtils.CreateFrom(this.@MyInteger); return true; } return base.GetGodotClassPropertyValue(name, out value); } /// /// Get the property information for all the properties declared in this class. /// This method is used by Godot to register the available properties in the editor. /// Do not call this method. /// [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] internal new static global::System.Collections.Generic.List GetGodotPropertyList() { var properties = new global::System.Collections.Generic.List(); properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.@MyString, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false)); properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.@MyInteger, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true)); return properties; } #pragma warning restore CS0109 }