summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/mono/.editorconfig71
-rwxr-xr-xmodules/mono/build_scripts/build_assemblies.py6
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Bar.cs6
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedFields.cs122
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedProperties.cs166
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Foo.cs4
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic1T.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic2T.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/MoreExportedFields.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs4
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllReadOnly.cs8
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllWriteOnly.cs4
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/MixedReadOnlyWriteOnly.cs12
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ScriptBoilerplate.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/ScriptPropertiesGeneratorTests.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllReadOnly_ScriptProperties.generated.cs40
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllWriteOnly_ScriptProperties.generated.cs24
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptProperties.generated.cs840
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptPropertyDefVal.generated.cs240
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptProperties.generated.cs924
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptPropertyDefVal.generated.cs244
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/MixedReadOnlyWriteOnly_ScriptProperties.generated.cs64
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs8
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllWriteOnly.cs4
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Bar.cs6
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedFields.cs122
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedProperties.cs162
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Foo.cs4
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.GD0003.cs6
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MixedReadOnlyWriteOnly.cs12
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MoreExportedFields.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ScriptBoilerplate.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs2
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GlobalClassAnalyzer.cs6
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptMethodsGenerator.cs6
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs6
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs6
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptSignalsGenerator.cs6
-rw-r--r--modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs2
-rw-r--r--modules/mono/editor/GodotTools/GodotTools/Internals/Internal.cs4
-rw-r--r--modules/mono/editor/bindings_generator.cpp55
-rw-r--r--modules/mono/glue/GodotSharp/.editorconfig19
-rw-r--r--modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs4
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Compat.cs2
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs1
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/RpcAttribute.cs4
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/AlcReloadCfg.cs4
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs32
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs2
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Colors.cs2
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/CustomGCHandle.cs1
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/DebuggingUtils.cs6
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/DelegateUtils.cs24
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/DisposablesTracker.cs1
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/GodotObject.base.cs8
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs32
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/MathfEx.cs6
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs35
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/Marshaling.cs6
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.cs8
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.extended.cs2
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs9
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs4
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs24
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs4
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs2
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharpEditor/Compat.cs3
69 files changed, 1747 insertions, 1712 deletions
diff --git a/modules/mono/.editorconfig b/modules/mono/.editorconfig
index db8fb2921c..1e5ae28396 100644
--- a/modules/mono/.editorconfig
+++ b/modules/mono/.editorconfig
@@ -13,22 +13,59 @@ trim_trailing_whitespace = true
max_line_length = 120
csharp_indent_case_contents_when_block = false
-[*.cs]
-# CA1707: Identifiers should not contain underscores
-# TODO:
-# Maybe we could disable this selectively only
-# where it's not desired and for generated code.
-dotnet_diagnostic.CA1707.severity = none
-# CA1711: Identifiers should not have incorrect suffix
-# Disable warning for suffixes like EventHandler, Flags, Enum, etc.
-dotnet_diagnostic.CA1711.severity = none
-# CA1716: Identifiers should not match keywords
-# TODO: We should look into this.
-dotnet_diagnostic.CA1716.severity = warning
-# CA1720: Identifiers should not contain type names
-dotnet_diagnostic.CA1720.severity = none
-# CA1805: Do not initialize unnecessarily
-# Don't tell me what to do.
-dotnet_diagnostic.CA1805.severity = none
+csharp_new_line_before_open_brace = all
+csharp_new_line_before_else = true
+csharp_new_line_before_catch = true
+csharp_new_line_before_finally = true
+csharp_new_line_before_members_in_object_initializers = true
+csharp_new_line_before_members_in_anonymous_types = true
+
+dotnet_style_require_accessibility_modifiers = always
+
# Diagnostics to prevent defensive copies of `in` struct parameters
resharper_possibly_impure_method_call_on_readonly_variable_highlighting = error
+
+# IDE0040: Add accessibility modifiers
+dotnet_diagnostic.IDE0040.severity = warning
+
+# IDE1006: Naming rule violation
+dotnet_diagnostic.IDE1006.severity = suggestion
+
+# Severity levels for dotnet_naming_rule only affect IDE environments.
+# To have them extra visible to people, we can set them as 'warning' here without affecting compilation.
+
+# Everything should be PascalCase by default
+dotnet_naming_rule.all_should_be_camel_case.severity = warning
+dotnet_naming_rule.all_should_be_camel_case.symbols = all
+dotnet_naming_rule.all_should_be_camel_case.style = pascal_case_style
+# Non-public fields should be _camelCase
+dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.severity = warning
+dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.symbols = non_public_fields
+dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.style = underscore_camel_case_style
+# Constant fields (and local vars) should be PascalCase
+dotnet_naming_rule.constants_should_be_pascal_case.severity = warning
+dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
+dotnet_naming_rule.constants_should_be_pascal_case.style = pascal_case_style
+# Locals variables should be camelCase
+dotnet_naming_rule.local_vars_should_be_camel_case.severity = warning
+dotnet_naming_rule.local_vars_should_be_camel_case.symbols = local_vars
+dotnet_naming_rule.local_vars_should_be_camel_case.style = camel_case_style
+# Parameters should be camelCase
+dotnet_naming_rule.parameters_should_be_camel_case.severity = warning
+dotnet_naming_rule.parameters_should_be_camel_case.symbols = parameters
+dotnet_naming_rule.parameters_should_be_camel_case.style = camel_case_style
+
+dotnet_naming_symbols.all.applicable_kinds = *
+dotnet_naming_symbols.local_vars.applicable_kinds = local
+dotnet_naming_symbols.parameters.applicable_kinds = parameter
+dotnet_naming_symbols.constants.applicable_kinds = field, local
+dotnet_naming_symbols.constants.required_modifiers = const
+dotnet_naming_symbols.non_public_fields.applicable_kinds = field
+dotnet_naming_symbols.non_public_fields.applicable_accessibilities = private, protected, private_protected
+
+dotnet_naming_style.camel_case_style.capitalization = camel_case
+dotnet_naming_style.camel_case_style.required_prefix =
+dotnet_naming_style.underscore_camel_case_style.capitalization = camel_case
+dotnet_naming_style.underscore_camel_case_style.required_prefix = _
+dotnet_naming_style.pascal_case_style.capitalization = pascal_case
+dotnet_naming_style.pascal_case_style.required_prefix =
diff --git a/modules/mono/build_scripts/build_assemblies.py b/modules/mono/build_scripts/build_assemblies.py
index 90a517cc40..aa6f6ef05e 100755
--- a/modules/mono/build_scripts/build_assemblies.py
+++ b/modules/mono/build_scripts/build_assemblies.py
@@ -312,7 +312,7 @@ def generate_sdk_package_versions():
)
# We write in ../SdkPackageVersions.props.
- with open(os.path.join(dirname(script_path), "SdkPackageVersions.props"), "w") as f:
+ with open(os.path.join(dirname(script_path), "SdkPackageVersions.props"), "w", encoding="utf-8") as f:
f.write(props)
f.close()
@@ -320,6 +320,8 @@ def generate_sdk_package_versions():
constants = """namespace Godot.SourceGenerators
{{
+// TODO: This is currently disabled because of https://github.com/dotnet/roslyn/issues/52904
+#pragma warning disable IDE0040 // Add accessibility modifiers.
partial class Common
{{
public const string VersionDocsUrl = "https://docs.godotengine.org/en/{docs_branch}";
@@ -338,7 +340,7 @@ def generate_sdk_package_versions():
)
os.makedirs(generators_dir, exist_ok=True)
- with open(os.path.join(generators_dir, "Common.Constants.cs"), "w") as f:
+ with open(os.path.join(generators_dir, "Common.Constants.cs"), "w", newline="\n", encoding="utf-8") as f:
f.write(constants)
f.close()
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Bar.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Bar.cs
index 2d797e2f46..bf37651787 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Bar.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Bar.cs
@@ -1,15 +1,15 @@
namespace Godot.SourceGenerators.Sample
{
- partial class Bar : GodotObject
+ public partial class Bar : GodotObject
{
}
// Foo in another file
- partial class Foo
+ public partial class Foo
{
}
- partial class NotSameNameAsFile : GodotObject
+ public partial class NotSameNameAsFile : GodotObject
{
}
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedFields.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedFields.cs
index 31e66ac306..c9e504fec7 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedFields.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedFields.cs
@@ -13,106 +13,106 @@ namespace Godot.SourceGenerators.Sample
[SuppressMessage("ReSharper", "InconsistentNaming")]
public partial class ExportedFields : GodotObject
{
- [Export] private Boolean field_Boolean = true;
- [Export] private Char field_Char = 'f';
- [Export] private SByte field_SByte = 10;
- [Export] private Int16 field_Int16 = 10;
- [Export] private Int32 field_Int32 = 10;
- [Export] private Int64 field_Int64 = 10;
- [Export] private Byte field_Byte = 10;
- [Export] private UInt16 field_UInt16 = 10;
- [Export] private UInt32 field_UInt32 = 10;
- [Export] private UInt64 field_UInt64 = 10;
- [Export] private Single field_Single = 10;
- [Export] private Double field_Double = 10;
- [Export] private String field_String = "foo";
+ [Export] private Boolean _fieldBoolean = true;
+ [Export] private Char _fieldChar = 'f';
+ [Export] private SByte _fieldSByte = 10;
+ [Export] private Int16 _fieldInt16 = 10;
+ [Export] private Int32 _fieldInt32 = 10;
+ [Export] private Int64 _fieldInt64 = 10;
+ [Export] private Byte _fieldByte = 10;
+ [Export] private UInt16 _fieldUInt16 = 10;
+ [Export] private UInt32 _fieldUInt32 = 10;
+ [Export] private UInt64 _fieldUInt64 = 10;
+ [Export] private Single _fieldSingle = 10;
+ [Export] private Double _fieldDouble = 10;
+ [Export] private String _fieldString = "foo";
// Godot structs
- [Export] private Vector2 field_Vector2 = new(10f, 10f);
- [Export] private Vector2I field_Vector2I = Vector2I.Up;
- [Export] private Rect2 field_Rect2 = new(new Vector2(10f, 10f), new Vector2(10f, 10f));
- [Export] private Rect2I field_Rect2I = new(new Vector2I(10, 10), new Vector2I(10, 10));
- [Export] private Transform2D field_Transform2D = Transform2D.Identity;
- [Export] private Vector3 field_Vector3 = new(10f, 10f, 10f);
- [Export] private Vector3I field_Vector3I = Vector3I.Back;
- [Export] private Basis field_Basis = new Basis(Quaternion.Identity);
- [Export] private Quaternion field_Quaternion = new Quaternion(Basis.Identity);
- [Export] private Transform3D field_Transform3D = Transform3D.Identity;
- [Export] private Vector4 field_Vector4 = new(10f, 10f, 10f, 10f);
- [Export] private Vector4I field_Vector4I = Vector4I.One;
- [Export] private Projection field_Projection = Projection.Identity;
- [Export] private Aabb field_Aabb = new Aabb(10f, 10f, 10f, new Vector3(1f, 1f, 1f));
- [Export] private Color field_Color = Colors.Aquamarine;
- [Export] private Plane field_Plane = Plane.PlaneXZ;
- [Export] private Callable field_Callable = new Callable(Engine.GetMainLoop(), "_process");
- [Export] private Signal field_Signal = new Signal(Engine.GetMainLoop(), "property_list_changed");
+ [Export] private Vector2 _fieldVector2 = new(10f, 10f);
+ [Export] private Vector2I _fieldVector2I = Vector2I.Up;
+ [Export] private Rect2 _fieldRect2 = new(new Vector2(10f, 10f), new Vector2(10f, 10f));
+ [Export] private Rect2I _fieldRect2I = new(new Vector2I(10, 10), new Vector2I(10, 10));
+ [Export] private Transform2D _fieldTransform2D = Transform2D.Identity;
+ [Export] private Vector3 _fieldVector3 = new(10f, 10f, 10f);
+ [Export] private Vector3I _fieldVector3I = Vector3I.Back;
+ [Export] private Basis _fieldBasis = new Basis(Quaternion.Identity);
+ [Export] private Quaternion _fieldQuaternion = new Quaternion(Basis.Identity);
+ [Export] private Transform3D _fieldTransform3D = Transform3D.Identity;
+ [Export] private Vector4 _fieldVector4 = new(10f, 10f, 10f, 10f);
+ [Export] private Vector4I _fieldVector4I = Vector4I.One;
+ [Export] private Projection _fieldProjection = Projection.Identity;
+ [Export] private Aabb _fieldAabb = new Aabb(10f, 10f, 10f, new Vector3(1f, 1f, 1f));
+ [Export] private Color _fieldColor = Colors.Aquamarine;
+ [Export] private Plane _fieldPlane = Plane.PlaneXZ;
+ [Export] private Callable _fieldCallable = new Callable(Engine.GetMainLoop(), "_process");
+ [Export] private Signal _fieldSignal = new Signal(Engine.GetMainLoop(), "property_list_changed");
// Enums
[SuppressMessage("ReSharper", "UnusedMember.Local")]
- enum MyEnum
+ public enum MyEnum
{
A,
B,
C
}
- [Export] private MyEnum field_Enum = MyEnum.C;
+ [Export] private MyEnum _fieldEnum = MyEnum.C;
[Flags]
[SuppressMessage("ReSharper", "UnusedMember.Local")]
- enum MyFlagsEnum
+ public enum MyFlagsEnum
{
A,
B,
C
}
- [Export] private MyFlagsEnum field_FlagsEnum = MyFlagsEnum.C;
+ [Export] private MyFlagsEnum _fieldFlagsEnum = MyFlagsEnum.C;
// Arrays
- [Export] private Byte[] field_ByteArray = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Int32[] field_Int32Array = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Int64[] field_Int64Array = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Single[] field_SingleArray = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
- [Export] private Double[] field_DoubleArray = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
- [Export] private String[] field_StringArray = { "foo", "bar" };
- [Export(PropertyHint.Enum, "A,B,C")] private String[] field_StringArrayEnum = { "foo", "bar" };
- [Export] private Vector2[] field_Vector2Array = { Vector2.Up, Vector2.Down, Vector2.Left, Vector2.Right };
- [Export] private Vector3[] field_Vector3Array = { Vector3.Up, Vector3.Down, Vector3.Left, Vector3.Right };
- [Export] private Color[] field_ColorArray = { Colors.Aqua, Colors.Aquamarine, Colors.Azure, Colors.Beige };
- [Export] private GodotObject[] field_GodotObjectOrDerivedArray = { null };
- [Export] private StringName[] field_StringNameArray = { "foo", "bar" };
- [Export] private NodePath[] field_NodePathArray = { "foo", "bar" };
- [Export] private Rid[] field_RidArray = { default, default, default };
+ [Export] private Byte[] _fieldByteArray = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Int32[] _fieldInt32Array = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Int64[] _fieldInt64Array = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Single[] _fieldSingleArray = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
+ [Export] private Double[] _fieldDoubleArray = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
+ [Export] private String[] _fieldStringArray = { "foo", "bar" };
+ [Export(PropertyHint.Enum, "A,B,C")] private String[] _fieldStringArrayEnum = { "foo", "bar" };
+ [Export] private Vector2[] _fieldVector2Array = { Vector2.Up, Vector2.Down, Vector2.Left, Vector2.Right };
+ [Export] private Vector3[] _fieldVector3Array = { Vector3.Up, Vector3.Down, Vector3.Left, Vector3.Right };
+ [Export] private Color[] _fieldColorArray = { Colors.Aqua, Colors.Aquamarine, Colors.Azure, Colors.Beige };
+ [Export] private GodotObject[] _fieldGodotObjectOrDerivedArray = { null };
+ [Export] private StringName[] _fieldStringNameArray = { "foo", "bar" };
+ [Export] private NodePath[] _fieldNodePathArray = { "foo", "bar" };
+ [Export] private Rid[] _fieldRidArray = { default, default, default };
// Note we use Array and not System.Array. This tests the generated namespace qualification.
- [Export] private Int32[] field_empty_Int32Array = Array.Empty<Int32>();
+ [Export] private Int32[] _fieldEmptyInt32Array = Array.Empty<Int32>();
// Note we use List and not System.Collections.Generic.
- [Export] private int[] field_array_from_list = new List<int>(Array.Empty<int>()).ToArray();
+ [Export] private int[] _fieldArrayFromList = new List<int>(Array.Empty<int>()).ToArray();
// Variant
- [Export] private Variant field_Variant = "foo";
+ [Export] private Variant _fieldVariant = "foo";
// Classes
- [Export] private GodotObject field_GodotObjectOrDerived;
- [Export] private Godot.Texture field_GodotResourceTexture;
- [Export] private StringName field_StringName = new StringName("foo");
- [Export] private NodePath field_NodePath = new NodePath("foo");
- [Export] private Rid field_Rid;
+ [Export] private GodotObject _fieldGodotObjectOrDerived;
+ [Export] private Godot.Texture _fieldGodotResourceTexture;
+ [Export] private StringName _fieldStringName = new StringName("foo");
+ [Export] private NodePath _fieldNodePath = new NodePath("foo");
+ [Export] private Rid _fieldRid;
[Export]
- private Godot.Collections.Dictionary field_GodotDictionary =
+ private Godot.Collections.Dictionary _fieldGodotDictionary =
new() { { "foo", 10 }, { Vector2.Up, Colors.Chocolate } };
[Export]
- private Godot.Collections.Array field_GodotArray =
+ private Godot.Collections.Array _fieldGodotArray =
new() { "foo", 10, Vector2.Up, Colors.Chocolate };
[Export]
- private Godot.Collections.Dictionary<string, bool> field_GodotGenericDictionary =
+ private Godot.Collections.Dictionary<string, bool> _fieldGodotGenericDictionary =
new() { { "foo", true }, { "bar", false } };
[Export]
- private Godot.Collections.Array<int> field_GodotGenericArray =
+ private Godot.Collections.Array<int> _fieldGodotGenericArray =
new() { 0, 1, 2, 3, 4, 5, 6 };
}
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedProperties.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedProperties.cs
index aef2a8824e..91f33383ab 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedProperties.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ExportedProperties.cs
@@ -13,41 +13,41 @@ namespace Godot.SourceGenerators.Sample
public partial class ExportedProperties : GodotObject
{
// Do not generate default value
- private String _notGenerate_Property_String = new string("not generate");
+ private String _notGeneratePropertyString = new string("not generate");
[Export]
- public String NotGenerate_Complex_Lamda_Property
+ public String NotGenerateComplexLambdaProperty
{
- get => _notGenerate_Property_String + Convert.ToInt32("1");
- set => _notGenerate_Property_String = value;
+ get => _notGeneratePropertyString + Convert.ToInt32("1");
+ set => _notGeneratePropertyString = value;
}
[Export]
- public String NotGenerate_Lamda_NoField_Property
+ public String NotGenerateLambdaNoFieldProperty
{
get => new string("not generate");
- set => _notGenerate_Property_String = value;
+ set => _notGeneratePropertyString = value;
}
[Export]
- public String NotGenerate_Complex_Return_Property
+ public String NotGenerateComplexReturnProperty
{
get
{
- return _notGenerate_Property_String + Convert.ToInt32("1");
+ return _notGeneratePropertyString + Convert.ToInt32("1");
}
set
{
- _notGenerate_Property_String = value;
+ _notGeneratePropertyString = value;
}
}
- private int _notGenerate_Property_Int = 1;
+ private int _notGeneratePropertyInt = 1;
[Export]
public string NotGenerate_Returns_Property
{
get
{
- if (_notGenerate_Property_Int == 1)
+ if (_notGeneratePropertyInt == 1)
{
return "a";
}
@@ -58,145 +58,145 @@ namespace Godot.SourceGenerators.Sample
}
set
{
- _notGenerate_Property_Int = value == "a" ? 1 : 2;
+ _notGeneratePropertyInt = value == "a" ? 1 : 2;
}
}
// Full Property
- private String _fullProperty_String = "FullProperty_String";
+ private String _fullPropertyString = "FullPropertyString";
[Export]
- public String FullProperty_String
+ public String FullPropertyString
{
get
{
- return _fullProperty_String;
+ return _fullPropertyString;
}
set
{
- _fullProperty_String = value;
+ _fullPropertyString = value;
}
}
- private String _fullProperty_String_Complex = new string("FullProperty_String_Complex") + Convert.ToInt32("1");
+ private String _fullPropertyStringComplex = new string("FullPropertyString_Complex") + Convert.ToInt32("1");
[Export]
- public String FullProperty_String_Complex
+ public String FullPropertyStringComplex
{
get
{
- return _fullProperty_String_Complex;
+ return _fullPropertyStringComplex;
}
set
{
- _fullProperty_String_Complex = value;
+ _fullPropertyStringComplex = value;
}
}
// Lambda Property
- private String _lamdaProperty_String = "LamdaProperty_String";
+ private String _lamdaPropertyString = "LamdaPropertyString";
[Export]
- public String LamdaProperty_String
+ public String LamdaPropertyString
{
- get => _lamdaProperty_String;
- set => _lamdaProperty_String = value;
+ get => _lamdaPropertyString;
+ set => _lamdaPropertyString = value;
}
// Auto Property
- [Export] private Boolean property_Boolean { get; set; } = true;
- [Export] private Char property_Char { get; set; } = 'f';
- [Export] private SByte property_SByte { get; set; } = 10;
- [Export] private Int16 property_Int16 { get; set; } = 10;
- [Export] private Int32 property_Int32 { get; set; } = 10;
- [Export] private Int64 property_Int64 { get; set; } = 10;
- [Export] private Byte property_Byte { get; set; } = 10;
- [Export] private UInt16 property_UInt16 { get; set; } = 10;
- [Export] private UInt32 property_UInt32 { get; set; } = 10;
- [Export] private UInt64 property_UInt64 { get; set; } = 10;
- [Export] private Single property_Single { get; set; } = 10;
- [Export] private Double property_Double { get; set; } = 10;
- [Export] private String property_String { get; set; } = "foo";
+ [Export] private Boolean PropertyBoolean { get; set; } = true;
+ [Export] private Char PropertyChar { get; set; } = 'f';
+ [Export] private SByte PropertySByte { get; set; } = 10;
+ [Export] private Int16 PropertyInt16 { get; set; } = 10;
+ [Export] private Int32 PropertyInt32 { get; set; } = 10;
+ [Export] private Int64 PropertyInt64 { get; set; } = 10;
+ [Export] private Byte PropertyByte { get; set; } = 10;
+ [Export] private UInt16 PropertyUInt16 { get; set; } = 10;
+ [Export] private UInt32 PropertyUInt32 { get; set; } = 10;
+ [Export] private UInt64 PropertyUInt64 { get; set; } = 10;
+ [Export] private Single PropertySingle { get; set; } = 10;
+ [Export] private Double PropertyDouble { get; set; } = 10;
+ [Export] private String PropertyString { get; set; } = "foo";
// Godot structs
- [Export] private Vector2 property_Vector2 { get; set; } = new(10f, 10f);
- [Export] private Vector2I property_Vector2I { get; set; } = Vector2I.Up;
- [Export] private Rect2 property_Rect2 { get; set; } = new(new Vector2(10f, 10f), new Vector2(10f, 10f));
- [Export] private Rect2I property_Rect2I { get; set; } = new(new Vector2I(10, 10), new Vector2I(10, 10));
- [Export] private Transform2D property_Transform2D { get; set; } = Transform2D.Identity;
- [Export] private Vector3 property_Vector3 { get; set; } = new(10f, 10f, 10f);
- [Export] private Vector3I property_Vector3I { get; set; } = Vector3I.Back;
- [Export] private Basis property_Basis { get; set; } = new Basis(Quaternion.Identity);
- [Export] private Quaternion property_Quaternion { get; set; } = new Quaternion(Basis.Identity);
- [Export] private Transform3D property_Transform3D { get; set; } = Transform3D.Identity;
- [Export] private Vector4 property_Vector4 { get; set; } = new(10f, 10f, 10f, 10f);
- [Export] private Vector4I property_Vector4I { get; set; } = Vector4I.One;
- [Export] private Projection property_Projection { get; set; } = Projection.Identity;
- [Export] private Aabb property_Aabb { get; set; } = new Aabb(10f, 10f, 10f, new Vector3(1f, 1f, 1f));
- [Export] private Color property_Color { get; set; } = Colors.Aquamarine;
- [Export] private Plane property_Plane { get; set; } = Plane.PlaneXZ;
- [Export] private Callable property_Callable { get; set; } = new Callable(Engine.GetMainLoop(), "_process");
- [Export] private Signal property_Signal { get; set; } = new Signal(Engine.GetMainLoop(), "property_list_changed");
+ [Export] private Vector2 PropertyVector2 { get; set; } = new(10f, 10f);
+ [Export] private Vector2I PropertyVector2I { get; set; } = Vector2I.Up;
+ [Export] private Rect2 PropertyRect2 { get; set; } = new(new Vector2(10f, 10f), new Vector2(10f, 10f));
+ [Export] private Rect2I PropertyRect2I { get; set; } = new(new Vector2I(10, 10), new Vector2I(10, 10));
+ [Export] private Transform2D PropertyTransform2D { get; set; } = Transform2D.Identity;
+ [Export] private Vector3 PropertyVector3 { get; set; } = new(10f, 10f, 10f);
+ [Export] private Vector3I PropertyVector3I { get; set; } = Vector3I.Back;
+ [Export] private Basis PropertyBasis { get; set; } = new Basis(Quaternion.Identity);
+ [Export] private Quaternion PropertyQuaternion { get; set; } = new Quaternion(Basis.Identity);
+ [Export] private Transform3D PropertyTransform3D { get; set; } = Transform3D.Identity;
+ [Export] private Vector4 PropertyVector4 { get; set; } = new(10f, 10f, 10f, 10f);
+ [Export] private Vector4I PropertyVector4I { get; set; } = Vector4I.One;
+ [Export] private Projection PropertyProjection { get; set; } = Projection.Identity;
+ [Export] private Aabb PropertyAabb { get; set; } = new Aabb(10f, 10f, 10f, new Vector3(1f, 1f, 1f));
+ [Export] private Color PropertyColor { get; set; } = Colors.Aquamarine;
+ [Export] private Plane PropertyPlane { get; set; } = Plane.PlaneXZ;
+ [Export] private Callable PropertyCallable { get; set; } = new Callable(Engine.GetMainLoop(), "_process");
+ [Export] private Signal PropertySignal { get; set; } = new Signal(Engine.GetMainLoop(), "Propertylist_changed");
// Enums
[SuppressMessage("ReSharper", "UnusedMember.Local")]
- enum MyEnum
+ public enum MyEnum
{
A,
B,
C
}
- [Export] private MyEnum property_Enum { get; set; } = MyEnum.C;
+ [Export] private MyEnum PropertyEnum { get; set; } = MyEnum.C;
[Flags]
[SuppressMessage("ReSharper", "UnusedMember.Local")]
- enum MyFlagsEnum
+ public enum MyFlagsEnum
{
A,
B,
C
}
- [Export] private MyFlagsEnum property_FlagsEnum { get; set; } = MyFlagsEnum.C;
+ [Export] private MyFlagsEnum PropertyFlagsEnum { get; set; } = MyFlagsEnum.C;
// Arrays
- [Export] private Byte[] property_ByteArray { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Int32[] property_Int32Array { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Int64[] property_Int64Array { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Single[] property_SingleArray { get; set; } = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
- [Export] private Double[] property_DoubleArray { get; set; } = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
- [Export] private String[] property_StringArray { get; set; } = { "foo", "bar" };
- [Export(PropertyHint.Enum, "A,B,C")] private String[] property_StringArrayEnum { get; set; } = { "foo", "bar" };
- [Export] private Vector2[] property_Vector2Array { get; set; } = { Vector2.Up, Vector2.Down, Vector2.Left, Vector2.Right };
- [Export] private Vector3[] property_Vector3Array { get; set; } = { Vector3.Up, Vector3.Down, Vector3.Left, Vector3.Right };
- [Export] private Color[] property_ColorArray { get; set; } = { Colors.Aqua, Colors.Aquamarine, Colors.Azure, Colors.Beige };
- [Export] private GodotObject[] property_GodotObjectOrDerivedArray { get; set; } = { null };
- [Export] private StringName[] field_StringNameArray { get; set; } = { "foo", "bar" };
- [Export] private NodePath[] field_NodePathArray { get; set; } = { "foo", "bar" };
- [Export] private Rid[] field_RidArray { get; set; } = { default, default, default };
+ [Export] private Byte[] PropertyByteArray { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Int32[] PropertyInt32Array { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Int64[] PropertyInt64Array { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Single[] PropertySingleArray { get; set; } = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
+ [Export] private Double[] PropertyDoubleArray { get; set; } = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
+ [Export] private String[] PropertyStringArray { get; set; } = { "foo", "bar" };
+ [Export(PropertyHint.Enum, "A,B,C")] private String[] PropertyStringArrayEnum { get; set; } = { "foo", "bar" };
+ [Export] private Vector2[] PropertyVector2Array { get; set; } = { Vector2.Up, Vector2.Down, Vector2.Left, Vector2.Right };
+ [Export] private Vector3[] PropertyVector3Array { get; set; } = { Vector3.Up, Vector3.Down, Vector3.Left, Vector3.Right };
+ [Export] private Color[] PropertyColorArray { get; set; } = { Colors.Aqua, Colors.Aquamarine, Colors.Azure, Colors.Beige };
+ [Export] private GodotObject[] PropertyGodotObjectOrDerivedArray { get; set; } = { null };
+ [Export] private StringName[] PropertyStringNameArray { get; set; } = { "foo", "bar" };
+ [Export] private NodePath[] PropertyNodePathArray { get; set; } = { "foo", "bar" };
+ [Export] private Rid[] PropertyRidArray { get; set; } = { default, default, default };
// Variant
- [Export] private Variant property_Variant { get; set; } = "foo";
+ [Export] private Variant PropertyVariant { get; set; } = "foo";
// Classes
- [Export] private GodotObject property_GodotObjectOrDerived { get; set; }
- [Export] private Godot.Texture property_GodotResourceTexture { get; set; }
- [Export] private StringName property_StringName { get; set; } = new StringName("foo");
- [Export] private NodePath property_NodePath { get; set; } = new NodePath("foo");
- [Export] private Rid property_Rid { get; set; }
+ [Export] private GodotObject PropertyGodotObjectOrDerived { get; set; }
+ [Export] private Godot.Texture PropertyGodotResourceTexture { get; set; }
+ [Export] private StringName PropertyStringName { get; set; } = new StringName("foo");
+ [Export] private NodePath PropertyNodePath { get; set; } = new NodePath("foo");
+ [Export] private Rid PropertyRid { get; set; }
[Export]
- private Godot.Collections.Dictionary property_GodotDictionary { get; set; } =
+ private Godot.Collections.Dictionary PropertyGodotDictionary { get; set; } =
new() { { "foo", 10 }, { Vector2.Up, Colors.Chocolate } };
[Export]
- private Godot.Collections.Array property_GodotArray { get; set; } =
+ private Godot.Collections.Array PropertyGodotArray { get; set; } =
new() { "foo", 10, Vector2.Up, Colors.Chocolate };
[Export]
- private Godot.Collections.Dictionary<string, bool> property_GodotGenericDictionary { get; set; } =
+ private Godot.Collections.Dictionary<string, bool> PropertyGodotGenericDictionary { get; set; } =
new() { { "foo", true }, { "bar", false } };
[Export]
- private Godot.Collections.Array<int> property_GodotGenericArray { get; set; } =
+ private Godot.Collections.Array<int> PropertyGodotGenericArray { get; set; } =
new() { 0, 1, 2, 3, 4, 5, 6 };
}
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Foo.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Foo.cs
index 9ef72d9e02..d2293e0731 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Foo.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Foo.cs
@@ -1,11 +1,11 @@
namespace Godot.SourceGenerators.Sample
{
- partial class Foo : GodotObject
+ public partial class Foo : GodotObject
{
}
// Foo again in the same file
- partial class Foo
+ public partial class Foo
{
}
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs
index 457d8daa8e..9d16a3170b 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs
@@ -3,7 +3,7 @@
namespace Godot.SourceGenerators.Sample
{
// Generic again but without generic parameters
- partial class Generic : GodotObject
+ public partial class Generic : GodotObject
{
private int _field;
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic1T.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic1T.cs
index 9c4f8ee1e1..6d92ff1b0b 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic1T.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic1T.cs
@@ -2,7 +2,7 @@
namespace Godot.SourceGenerators.Sample
{
- partial class Generic1T<T> : GodotObject
+ public partial class Generic1T<T> : GodotObject
{
private int _field;
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic2T.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic2T.cs
index 80551a0b42..eef80ff951 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic2T.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic2T.cs
@@ -3,7 +3,7 @@
namespace Godot.SourceGenerators.Sample
{
// Generic again but different generic parameters
- partial class Generic2T<T, R> : GodotObject
+ public partial class Generic2T<T, R> : GodotObject
{
private int _field;
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/MoreExportedFields.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/MoreExportedFields.cs
index 64088215e9..28685ac87a 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/MoreExportedFields.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/MoreExportedFields.cs
@@ -14,6 +14,6 @@ namespace Godot.SourceGenerators.Sample
public partial class ExportedFields : GodotObject
{
// Note we use Array and not System.Array. This tests the generated namespace qualification.
- [Export] private Int64[] field_empty_Int64Array = Array.Empty<Int64>();
+ [Export] private Int64[] _fieldEmptyInt64Array = Array.Empty<Int64>();
}
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs
index 3021f57115..3c533b712d 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs
@@ -11,8 +11,8 @@ public partial class NestedClass : GodotObject
[Signal]
public delegate void MySignalEventHandler(string str, int num);
- [Export] private String field_String = "foo";
- [Export] private String property_String { get; set; } = "foo";
+ [Export] private String _fieldString = "foo";
+ [Export] private String PropertyString { get; set; } = "foo";
private void Method()
{
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllReadOnly.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllReadOnly.cs
index 0c374169b9..c36aa55eef 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllReadOnly.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllReadOnly.cs
@@ -2,9 +2,9 @@ namespace Godot.SourceGenerators.Sample
{
public partial class AllReadOnly : GodotObject
{
- public readonly string readonly_field = "foo";
- public string readonly_auto_property { get; } = "foo";
- public string readonly_property { get => "foo"; }
- public string initonly_auto_property { get; init; }
+ public readonly string ReadonlyField = "foo";
+ public string ReadonlyAutoProperty { get; } = "foo";
+ public string ReadonlyProperty { get => "foo"; }
+ public string InitonlyAutoProperty { get; init; }
}
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllWriteOnly.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllWriteOnly.cs
index 14a1802330..48acfa6c95 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllWriteOnly.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/AllWriteOnly.cs
@@ -4,7 +4,7 @@ namespace Godot.SourceGenerators.Sample
{
public partial class AllWriteOnly : GodotObject
{
- bool writeonly_backing_field = false;
- public bool writeonly_property { set => writeonly_backing_field = value; }
+ private bool _writeOnlyBackingField = false;
+ public bool WriteOnlyProperty { set => _writeOnlyBackingField = value; }
}
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/MixedReadOnlyWriteOnly.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/MixedReadOnlyWriteOnly.cs
index f556bdc7e4..c6ce6efe78 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/MixedReadOnlyWriteOnly.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/OneWayProperties/MixedReadOnlyWriteOnly.cs
@@ -2,12 +2,12 @@ namespace Godot.SourceGenerators.Sample
{
public partial class MixedReadonlyWriteOnly : GodotObject
{
- public readonly string readonly_field = "foo";
- public string readonly_auto_property { get; } = "foo";
- public string readonly_property { get => "foo"; }
- public string initonly_auto_property { get; init; }
+ public readonly string ReadOnlyField = "foo";
+ public string ReadOnlyAutoProperty { get; } = "foo";
+ public string ReadOnlyProperty { get => "foo"; }
+ public string InitOnlyAutoProperty { get; init; }
- bool writeonly_backing_field = false;
- public bool writeonly_property { set => writeonly_backing_field = value; }
+ private bool _writeOnlyBackingField = false;
+ public bool WriteOnlyProperty { set => _writeOnlyBackingField = value; }
}
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ScriptBoilerplate.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ScriptBoilerplate.cs
index e43a3469ae..1266f6d853 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ScriptBoilerplate.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/ScriptBoilerplate.cs
@@ -26,7 +26,7 @@ namespace Godot.SourceGenerators.Sample
}
}
- partial struct OuterClass
+ public partial struct OuterClass
{
public partial class NesterClass : RefCounted
{
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/ScriptPropertiesGeneratorTests.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/ScriptPropertiesGeneratorTests.cs
index d20b354b9e..3cc5841097 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/ScriptPropertiesGeneratorTests.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/ScriptPropertiesGeneratorTests.cs
@@ -41,7 +41,7 @@ public class ScriptPropertiesGeneratorTests
}
[Fact]
- public async void OneWayPropertiesMixedReadonlyWriteOnly()
+ public async void OneWayPropertiesMixedReadOnlyWriteOnly()
{
await CSharpSourceGeneratorVerifier<ScriptPropertiesGenerator>.Verify(
"MixedReadOnlyWriteOnly.cs",
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllReadOnly_ScriptProperties.generated.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllReadOnly_ScriptProperties.generated.cs
index db56ac30a3..96ff0f75e9 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllReadOnly_ScriptProperties.generated.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllReadOnly_ScriptProperties.generated.cs
@@ -9,40 +9,40 @@ partial class AllReadOnly
/// </summary>
public new class PropertyName : global::Godot.GodotObject.PropertyName {
/// <summary>
- /// Cached name for the 'readonly_auto_property' property.
+ /// Cached name for the 'ReadOnlyAutoProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName readonly_auto_property = "readonly_auto_property";
+ public new static readonly global::Godot.StringName ReadOnlyAutoProperty = "ReadOnlyAutoProperty";
/// <summary>
- /// Cached name for the 'readonly_property' property.
+ /// Cached name for the 'ReadOnlyProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName readonly_property = "readonly_property";
+ public new static readonly global::Godot.StringName ReadOnlyProperty = "ReadOnlyProperty";
/// <summary>
- /// Cached name for the 'initonly_auto_property' property.
+ /// Cached name for the 'InitOnlyAutoProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName initonly_auto_property = "initonly_auto_property";
+ public new static readonly global::Godot.StringName InitOnlyAutoProperty = "InitOnlyAutoProperty";
/// <summary>
- /// Cached name for the 'readonly_field' field.
+ /// Cached name for the 'ReadOnlyField' field.
/// </summary>
- public new static readonly global::Godot.StringName readonly_field = "readonly_field";
+ public new static readonly global::Godot.StringName ReadOnlyField = "ReadOnlyField";
}
/// <inheritdoc/>
[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.readonly_auto_property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.readonly_auto_property);
+ if (name == PropertyName.ReadOnlyAutoProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.ReadOnlyAutoProperty);
return true;
}
- else if (name == PropertyName.readonly_property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.readonly_property);
+ else if (name == PropertyName.ReadOnlyProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.ReadOnlyProperty);
return true;
}
- else if (name == PropertyName.initonly_auto_property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.initonly_auto_property);
+ else if (name == PropertyName.InitOnlyAutoProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.InitOnlyAutoProperty);
return true;
}
- else if (name == PropertyName.readonly_field) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.readonly_field);
+ else if (name == PropertyName.ReadOnlyField) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.ReadOnlyField);
return true;
}
return base.GetGodotClassPropertyValue(name, out value);
@@ -56,10 +56,10 @@ partial class AllReadOnly
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList()
{
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>();
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.readonly_field, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.readonly_auto_property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.readonly_property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.initonly_auto_property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
+ 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));
+ 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));
+ 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));
+ 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));
return properties;
}
#pragma warning restore CS0109
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllWriteOnly_ScriptProperties.generated.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllWriteOnly_ScriptProperties.generated.cs
index 256420fe87..91dd282b99 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllWriteOnly_ScriptProperties.generated.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllWriteOnly_ScriptProperties.generated.cs
@@ -9,24 +9,24 @@ partial class AllWriteOnly
/// </summary>
public new class PropertyName : global::Godot.GodotObject.PropertyName {
/// <summary>
- /// Cached name for the 'writeonly_property' property.
+ /// Cached name for the 'WriteOnlyProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName writeonly_property = "writeonly_property";
+ public new static readonly global::Godot.StringName WriteOnlyProperty = "WriteOnlyProperty";
/// <summary>
- /// Cached name for the 'writeonly_backing_field' field.
+ /// Cached name for the '_writeOnlyBackingField' field.
/// </summary>
- public new static readonly global::Godot.StringName writeonly_backing_field = "writeonly_backing_field";
+ public new static readonly global::Godot.StringName _writeOnlyBackingField = "_writeOnlyBackingField";
}
/// <inheritdoc/>
[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.writeonly_property) {
- this.writeonly_property = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
+ if (name == PropertyName.WriteOnlyProperty) {
+ this.WriteOnlyProperty = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
return true;
}
- else if (name == PropertyName.writeonly_backing_field) {
- this.writeonly_backing_field = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
+ else if (name == PropertyName._writeOnlyBackingField) {
+ this._writeOnlyBackingField = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
return true;
}
return base.SetGodotClassPropertyValue(name, value);
@@ -35,8 +35,8 @@ partial class AllWriteOnly
[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.writeonly_backing_field) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this.writeonly_backing_field);
+ if (name == PropertyName._writeOnlyBackingField) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this._writeOnlyBackingField);
return true;
}
return base.GetGodotClassPropertyValue(name, out value);
@@ -50,8 +50,8 @@ partial class AllWriteOnly
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList()
{
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>();
- properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.writeonly_backing_field, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.writeonly_property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
+ 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));
+ 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));
return properties;
}
#pragma warning restore CS0109
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptProperties.generated.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptProperties.generated.cs
index 915c36525b..334adc1243 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptProperties.generated.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptProperties.generated.cs
@@ -9,488 +9,488 @@ partial class ExportedFields
/// </summary>
public new class PropertyName : global::Godot.GodotObject.PropertyName {
/// <summary>
- /// Cached name for the 'field_Boolean' field.
+ /// Cached name for the '_fieldBoolean' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Boolean = "field_Boolean";
+ public new static readonly global::Godot.StringName _fieldBoolean = "_fieldBoolean";
/// <summary>
- /// Cached name for the 'field_Char' field.
+ /// Cached name for the '_fieldChar' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Char = "field_Char";
+ public new static readonly global::Godot.StringName _fieldChar = "_fieldChar";
/// <summary>
- /// Cached name for the 'field_SByte' field.
+ /// Cached name for the '_fieldSByte' field.
/// </summary>
- public new static readonly global::Godot.StringName field_SByte = "field_SByte";
+ public new static readonly global::Godot.StringName _fieldSByte = "_fieldSByte";
/// <summary>
- /// Cached name for the 'field_Int16' field.
+ /// Cached name for the '_fieldInt16' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Int16 = "field_Int16";
+ public new static readonly global::Godot.StringName _fieldInt16 = "_fieldInt16";
/// <summary>
- /// Cached name for the 'field_Int32' field.
+ /// Cached name for the '_fieldInt32' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Int32 = "field_Int32";
+ public new static readonly global::Godot.StringName _fieldInt32 = "_fieldInt32";
/// <summary>
- /// Cached name for the 'field_Int64' field.
+ /// Cached name for the '_fieldInt64' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Int64 = "field_Int64";
+ public new static readonly global::Godot.StringName _fieldInt64 = "_fieldInt64";
/// <summary>
- /// Cached name for the 'field_Byte' field.
+ /// Cached name for the '_fieldByte' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Byte = "field_Byte";
+ public new static readonly global::Godot.StringName _fieldByte = "_fieldByte";
/// <summary>
- /// Cached name for the 'field_UInt16' field.
+ /// Cached name for the '_fieldUInt16' field.
/// </summary>
- public new static readonly global::Godot.StringName field_UInt16 = "field_UInt16";
+ public new static readonly global::Godot.StringName _fieldUInt16 = "_fieldUInt16";
/// <summary>
- /// Cached name for the 'field_UInt32' field.
+ /// Cached name for the '_fieldUInt32' field.
/// </summary>
- public new static readonly global::Godot.StringName field_UInt32 = "field_UInt32";
+ public new static readonly global::Godot.StringName _fieldUInt32 = "_fieldUInt32";
/// <summary>
- /// Cached name for the 'field_UInt64' field.
+ /// Cached name for the '_fieldUInt64' field.
/// </summary>
- public new static readonly global::Godot.StringName field_UInt64 = "field_UInt64";
+ public new static readonly global::Godot.StringName _fieldUInt64 = "_fieldUInt64";
/// <summary>
- /// Cached name for the 'field_Single' field.
+ /// Cached name for the '_fieldSingle' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Single = "field_Single";
+ public new static readonly global::Godot.StringName _fieldSingle = "_fieldSingle";
/// <summary>
- /// Cached name for the 'field_Double' field.
+ /// Cached name for the '_fieldDouble' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Double = "field_Double";
+ public new static readonly global::Godot.StringName _fieldDouble = "_fieldDouble";
/// <summary>
- /// Cached name for the 'field_String' field.
+ /// Cached name for the '_fieldString' field.
/// </summary>
- public new static readonly global::Godot.StringName field_String = "field_String";
+ public new static readonly global::Godot.StringName _fieldString = "_fieldString";
/// <summary>
- /// Cached name for the 'field_Vector2' field.
+ /// Cached name for the '_fieldVector2' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Vector2 = "field_Vector2";
+ public new static readonly global::Godot.StringName _fieldVector2 = "_fieldVector2";
/// <summary>
- /// Cached name for the 'field_Vector2I' field.
+ /// Cached name for the '_fieldVector2I' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Vector2I = "field_Vector2I";
+ public new static readonly global::Godot.StringName _fieldVector2I = "_fieldVector2I";
/// <summary>
- /// Cached name for the 'field_Rect2' field.
+ /// Cached name for the '_fieldRect2' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Rect2 = "field_Rect2";
+ public new static readonly global::Godot.StringName _fieldRect2 = "_fieldRect2";
/// <summary>
- /// Cached name for the 'field_Rect2I' field.
+ /// Cached name for the '_fieldRect2I' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Rect2I = "field_Rect2I";
+ public new static readonly global::Godot.StringName _fieldRect2I = "_fieldRect2I";
/// <summary>
- /// Cached name for the 'field_Transform2D' field.
+ /// Cached name for the '_fieldTransform2D' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Transform2D = "field_Transform2D";
+ public new static readonly global::Godot.StringName _fieldTransform2D = "_fieldTransform2D";
/// <summary>
- /// Cached name for the 'field_Vector3' field.
+ /// Cached name for the '_fieldVector3' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Vector3 = "field_Vector3";
+ public new static readonly global::Godot.StringName _fieldVector3 = "_fieldVector3";
/// <summary>
- /// Cached name for the 'field_Vector3I' field.
+ /// Cached name for the '_fieldVector3I' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Vector3I = "field_Vector3I";
+ public new static readonly global::Godot.StringName _fieldVector3I = "_fieldVector3I";
/// <summary>
- /// Cached name for the 'field_Basis' field.
+ /// Cached name for the '_fieldBasis' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Basis = "field_Basis";
+ public new static readonly global::Godot.StringName _fieldBasis = "_fieldBasis";
/// <summary>
- /// Cached name for the 'field_Quaternion' field.
+ /// Cached name for the '_fieldQuaternion' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Quaternion = "field_Quaternion";
+ public new static readonly global::Godot.StringName _fieldQuaternion = "_fieldQuaternion";
/// <summary>
- /// Cached name for the 'field_Transform3D' field.
+ /// Cached name for the '_fieldTransform3D' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Transform3D = "field_Transform3D";
+ public new static readonly global::Godot.StringName _fieldTransform3D = "_fieldTransform3D";
/// <summary>
- /// Cached name for the 'field_Vector4' field.
+ /// Cached name for the '_fieldVector4' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Vector4 = "field_Vector4";
+ public new static readonly global::Godot.StringName _fieldVector4 = "_fieldVector4";
/// <summary>
- /// Cached name for the 'field_Vector4I' field.
+ /// Cached name for the '_fieldVector4I' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Vector4I = "field_Vector4I";
+ public new static readonly global::Godot.StringName _fieldVector4I = "_fieldVector4I";
/// <summary>
- /// Cached name for the 'field_Projection' field.
+ /// Cached name for the '_fieldProjection' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Projection = "field_Projection";
+ public new static readonly global::Godot.StringName _fieldProjection = "_fieldProjection";
/// <summary>
- /// Cached name for the 'field_Aabb' field.
+ /// Cached name for the '_fieldAabb' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Aabb = "field_Aabb";
+ public new static readonly global::Godot.StringName _fieldAabb = "_fieldAabb";
/// <summary>
- /// Cached name for the 'field_Color' field.
+ /// Cached name for the '_fieldColor' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Color = "field_Color";
+ public new static readonly global::Godot.StringName _fieldColor = "_fieldColor";
/// <summary>
- /// Cached name for the 'field_Plane' field.
+ /// Cached name for the '_fieldPlane' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Plane = "field_Plane";
+ public new static readonly global::Godot.StringName _fieldPlane = "_fieldPlane";
/// <summary>
- /// Cached name for the 'field_Callable' field.
+ /// Cached name for the '_fieldCallable' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Callable = "field_Callable";
+ public new static readonly global::Godot.StringName _fieldCallable = "_fieldCallable";
/// <summary>
- /// Cached name for the 'field_Signal' field.
+ /// Cached name for the '_fieldSignal' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Signal = "field_Signal";
+ public new static readonly global::Godot.StringName _fieldSignal = "_fieldSignal";
/// <summary>
- /// Cached name for the 'field_Enum' field.
+ /// Cached name for the '_fieldEnum' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Enum = "field_Enum";
+ public new static readonly global::Godot.StringName _fieldEnum = "_fieldEnum";
/// <summary>
- /// Cached name for the 'field_FlagsEnum' field.
+ /// Cached name for the '_fieldFlagsEnum' field.
/// </summary>
- public new static readonly global::Godot.StringName field_FlagsEnum = "field_FlagsEnum";
+ public new static readonly global::Godot.StringName _fieldFlagsEnum = "_fieldFlagsEnum";
/// <summary>
- /// Cached name for the 'field_ByteArray' field.
+ /// Cached name for the '_fieldByteArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_ByteArray = "field_ByteArray";
+ public new static readonly global::Godot.StringName _fieldByteArray = "_fieldByteArray";
/// <summary>
- /// Cached name for the 'field_Int32Array' field.
+ /// Cached name for the '_fieldInt32Array' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Int32Array = "field_Int32Array";
+ public new static readonly global::Godot.StringName _fieldInt32Array = "_fieldInt32Array";
/// <summary>
- /// Cached name for the 'field_Int64Array' field.
+ /// Cached name for the '_fieldInt64Array' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Int64Array = "field_Int64Array";
+ public new static readonly global::Godot.StringName _fieldInt64Array = "_fieldInt64Array";
/// <summary>
- /// Cached name for the 'field_SingleArray' field.
+ /// Cached name for the '_fieldSingleArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_SingleArray = "field_SingleArray";
+ public new static readonly global::Godot.StringName _fieldSingleArray = "_fieldSingleArray";
/// <summary>
- /// Cached name for the 'field_DoubleArray' field.
+ /// Cached name for the '_fieldDoubleArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_DoubleArray = "field_DoubleArray";
+ public new static readonly global::Godot.StringName _fieldDoubleArray = "_fieldDoubleArray";
/// <summary>
- /// Cached name for the 'field_StringArray' field.
+ /// Cached name for the '_fieldStringArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_StringArray = "field_StringArray";
+ public new static readonly global::Godot.StringName _fieldStringArray = "_fieldStringArray";
/// <summary>
- /// Cached name for the 'field_StringArrayEnum' field.
+ /// Cached name for the '_fieldStringArrayEnum' field.
/// </summary>
- public new static readonly global::Godot.StringName field_StringArrayEnum = "field_StringArrayEnum";
+ public new static readonly global::Godot.StringName _fieldStringArrayEnum = "_fieldStringArrayEnum";
/// <summary>
- /// Cached name for the 'field_Vector2Array' field.
+ /// Cached name for the '_fieldVector2Array' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Vector2Array = "field_Vector2Array";
+ public new static readonly global::Godot.StringName _fieldVector2Array = "_fieldVector2Array";
/// <summary>
- /// Cached name for the 'field_Vector3Array' field.
+ /// Cached name for the '_fieldVector3Array' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Vector3Array = "field_Vector3Array";
+ public new static readonly global::Godot.StringName _fieldVector3Array = "_fieldVector3Array";
/// <summary>
- /// Cached name for the 'field_ColorArray' field.
+ /// Cached name for the '_fieldColorArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_ColorArray = "field_ColorArray";
+ public new static readonly global::Godot.StringName _fieldColorArray = "_fieldColorArray";
/// <summary>
- /// Cached name for the 'field_GodotObjectOrDerivedArray' field.
+ /// Cached name for the '_fieldGodotObjectOrDerivedArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_GodotObjectOrDerivedArray = "field_GodotObjectOrDerivedArray";
+ public new static readonly global::Godot.StringName _fieldGodotObjectOrDerivedArray = "_fieldGodotObjectOrDerivedArray";
/// <summary>
- /// Cached name for the 'field_StringNameArray' field.
+ /// Cached name for the '_fieldStringNameArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_StringNameArray = "field_StringNameArray";
+ public new static readonly global::Godot.StringName _fieldStringNameArray = "_fieldStringNameArray";
/// <summary>
- /// Cached name for the 'field_NodePathArray' field.
+ /// Cached name for the '_fieldNodePathArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_NodePathArray = "field_NodePathArray";
+ public new static readonly global::Godot.StringName _fieldNodePathArray = "_fieldNodePathArray";
/// <summary>
- /// Cached name for the 'field_RidArray' field.
+ /// Cached name for the '_fieldRidArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_RidArray = "field_RidArray";
+ public new static readonly global::Godot.StringName _fieldRidArray = "_fieldRidArray";
/// <summary>
- /// Cached name for the 'field_empty_Int32Array' field.
+ /// Cached name for the '_fieldEmptyInt32Array' field.
/// </summary>
- public new static readonly global::Godot.StringName field_empty_Int32Array = "field_empty_Int32Array";
+ public new static readonly global::Godot.StringName _fieldEmptyInt32Array = "_fieldEmptyInt32Array";
/// <summary>
- /// Cached name for the 'field_array_from_list' field.
+ /// Cached name for the '_fieldArrayFromList' field.
/// </summary>
- public new static readonly global::Godot.StringName field_array_from_list = "field_array_from_list";
+ public new static readonly global::Godot.StringName _fieldArrayFromList = "_fieldArrayFromList";
/// <summary>
- /// Cached name for the 'field_Variant' field.
+ /// Cached name for the '_fieldVariant' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Variant = "field_Variant";
+ public new static readonly global::Godot.StringName _fieldVariant = "_fieldVariant";
/// <summary>
- /// Cached name for the 'field_GodotObjectOrDerived' field.
+ /// Cached name for the '_fieldGodotObjectOrDerived' field.
/// </summary>
- public new static readonly global::Godot.StringName field_GodotObjectOrDerived = "field_GodotObjectOrDerived";
+ public new static readonly global::Godot.StringName _fieldGodotObjectOrDerived = "_fieldGodotObjectOrDerived";
/// <summary>
- /// Cached name for the 'field_GodotResourceTexture' field.
+ /// Cached name for the '_fieldGodotResourceTexture' field.
/// </summary>
- public new static readonly global::Godot.StringName field_GodotResourceTexture = "field_GodotResourceTexture";
+ public new static readonly global::Godot.StringName _fieldGodotResourceTexture = "_fieldGodotResourceTexture";
/// <summary>
- /// Cached name for the 'field_StringName' field.
+ /// Cached name for the '_fieldStringName' field.
/// </summary>
- public new static readonly global::Godot.StringName field_StringName = "field_StringName";
+ public new static readonly global::Godot.StringName _fieldStringName = "_fieldStringName";
/// <summary>
- /// Cached name for the 'field_NodePath' field.
+ /// Cached name for the '_fieldNodePath' field.
/// </summary>
- public new static readonly global::Godot.StringName field_NodePath = "field_NodePath";
+ public new static readonly global::Godot.StringName _fieldNodePath = "_fieldNodePath";
/// <summary>
- /// Cached name for the 'field_Rid' field.
+ /// Cached name for the '_fieldRid' field.
/// </summary>
- public new static readonly global::Godot.StringName field_Rid = "field_Rid";
+ public new static readonly global::Godot.StringName _fieldRid = "_fieldRid";
/// <summary>
- /// Cached name for the 'field_GodotDictionary' field.
+ /// Cached name for the '_fieldGodotDictionary' field.
/// </summary>
- public new static readonly global::Godot.StringName field_GodotDictionary = "field_GodotDictionary";
+ public new static readonly global::Godot.StringName _fieldGodotDictionary = "_fieldGodotDictionary";
/// <summary>
- /// Cached name for the 'field_GodotArray' field.
+ /// Cached name for the '_fieldGodotArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_GodotArray = "field_GodotArray";
+ public new static readonly global::Godot.StringName _fieldGodotArray = "_fieldGodotArray";
/// <summary>
- /// Cached name for the 'field_GodotGenericDictionary' field.
+ /// Cached name for the '_fieldGodotGenericDictionary' field.
/// </summary>
- public new static readonly global::Godot.StringName field_GodotGenericDictionary = "field_GodotGenericDictionary";
+ public new static readonly global::Godot.StringName _fieldGodotGenericDictionary = "_fieldGodotGenericDictionary";
/// <summary>
- /// Cached name for the 'field_GodotGenericArray' field.
+ /// Cached name for the '_fieldGodotGenericArray' field.
/// </summary>
- public new static readonly global::Godot.StringName field_GodotGenericArray = "field_GodotGenericArray";
+ public new static readonly global::Godot.StringName _fieldGodotGenericArray = "_fieldGodotGenericArray";
/// <summary>
- /// Cached name for the 'field_empty_Int64Array' field.
+ /// Cached name for the '_fieldEmptyInt64Array' field.
/// </summary>
- public new static readonly global::Godot.StringName field_empty_Int64Array = "field_empty_Int64Array";
+ public new static readonly global::Godot.StringName _fieldEmptyInt64Array = "_fieldEmptyInt64Array";
}
/// <inheritdoc/>
[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.field_Boolean) {
- this.field_Boolean = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
+ if (name == PropertyName._fieldBoolean) {
+ this._fieldBoolean = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
return true;
}
- else if (name == PropertyName.field_Char) {
- this.field_Char = global::Godot.NativeInterop.VariantUtils.ConvertTo<char>(value);
+ else if (name == PropertyName._fieldChar) {
+ this._fieldChar = global::Godot.NativeInterop.VariantUtils.ConvertTo<char>(value);
return true;
}
- else if (name == PropertyName.field_SByte) {
- this.field_SByte = global::Godot.NativeInterop.VariantUtils.ConvertTo<sbyte>(value);
+ else if (name == PropertyName._fieldSByte) {
+ this._fieldSByte = global::Godot.NativeInterop.VariantUtils.ConvertTo<sbyte>(value);
return true;
}
- else if (name == PropertyName.field_Int16) {
- this.field_Int16 = global::Godot.NativeInterop.VariantUtils.ConvertTo<short>(value);
+ else if (name == PropertyName._fieldInt16) {
+ this._fieldInt16 = global::Godot.NativeInterop.VariantUtils.ConvertTo<short>(value);
return true;
}
- else if (name == PropertyName.field_Int32) {
- this.field_Int32 = global::Godot.NativeInterop.VariantUtils.ConvertTo<int>(value);
+ else if (name == PropertyName._fieldInt32) {
+ this._fieldInt32 = global::Godot.NativeInterop.VariantUtils.ConvertTo<int>(value);
return true;
}
- else if (name == PropertyName.field_Int64) {
- this.field_Int64 = global::Godot.NativeInterop.VariantUtils.ConvertTo<long>(value);
+ else if (name == PropertyName._fieldInt64) {
+ this._fieldInt64 = global::Godot.NativeInterop.VariantUtils.ConvertTo<long>(value);
return true;
}
- else if (name == PropertyName.field_Byte) {
- this.field_Byte = global::Godot.NativeInterop.VariantUtils.ConvertTo<byte>(value);
+ else if (name == PropertyName._fieldByte) {
+ this._fieldByte = global::Godot.NativeInterop.VariantUtils.ConvertTo<byte>(value);
return true;
}
- else if (name == PropertyName.field_UInt16) {
- this.field_UInt16 = global::Godot.NativeInterop.VariantUtils.ConvertTo<ushort>(value);
+ else if (name == PropertyName._fieldUInt16) {
+ this._fieldUInt16 = global::Godot.NativeInterop.VariantUtils.ConvertTo<ushort>(value);
return true;
}
- else if (name == PropertyName.field_UInt32) {
- this.field_UInt32 = global::Godot.NativeInterop.VariantUtils.ConvertTo<uint>(value);
+ else if (name == PropertyName._fieldUInt32) {
+ this._fieldUInt32 = global::Godot.NativeInterop.VariantUtils.ConvertTo<uint>(value);
return true;
}
- else if (name == PropertyName.field_UInt64) {
- this.field_UInt64 = global::Godot.NativeInterop.VariantUtils.ConvertTo<ulong>(value);
+ else if (name == PropertyName._fieldUInt64) {
+ this._fieldUInt64 = global::Godot.NativeInterop.VariantUtils.ConvertTo<ulong>(value);
return true;
}
- else if (name == PropertyName.field_Single) {
- this.field_Single = global::Godot.NativeInterop.VariantUtils.ConvertTo<float>(value);
+ else if (name == PropertyName._fieldSingle) {
+ this._fieldSingle = global::Godot.NativeInterop.VariantUtils.ConvertTo<float>(value);
return true;
}
- else if (name == PropertyName.field_Double) {
- this.field_Double = global::Godot.NativeInterop.VariantUtils.ConvertTo<double>(value);
+ else if (name == PropertyName._fieldDouble) {
+ this._fieldDouble = global::Godot.NativeInterop.VariantUtils.ConvertTo<double>(value);
return true;
}
- else if (name == PropertyName.field_String) {
- this.field_String = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName._fieldString) {
+ this._fieldString = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.field_Vector2) {
- this.field_Vector2 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2>(value);
+ else if (name == PropertyName._fieldVector2) {
+ this._fieldVector2 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2>(value);
return true;
}
- else if (name == PropertyName.field_Vector2I) {
- this.field_Vector2I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2I>(value);
+ else if (name == PropertyName._fieldVector2I) {
+ this._fieldVector2I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2I>(value);
return true;
}
- else if (name == PropertyName.field_Rect2) {
- this.field_Rect2 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rect2>(value);
+ else if (name == PropertyName._fieldRect2) {
+ this._fieldRect2 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rect2>(value);
return true;
}
- else if (name == PropertyName.field_Rect2I) {
- this.field_Rect2I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rect2I>(value);
+ else if (name == PropertyName._fieldRect2I) {
+ this._fieldRect2I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rect2I>(value);
return true;
}
- else if (name == PropertyName.field_Transform2D) {
- this.field_Transform2D = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Transform2D>(value);
+ else if (name == PropertyName._fieldTransform2D) {
+ this._fieldTransform2D = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Transform2D>(value);
return true;
}
- else if (name == PropertyName.field_Vector3) {
- this.field_Vector3 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3>(value);
+ else if (name == PropertyName._fieldVector3) {
+ this._fieldVector3 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3>(value);
return true;
}
- else if (name == PropertyName.field_Vector3I) {
- this.field_Vector3I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3I>(value);
+ else if (name == PropertyName._fieldVector3I) {
+ this._fieldVector3I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3I>(value);
return true;
}
- else if (name == PropertyName.field_Basis) {
- this.field_Basis = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Basis>(value);
+ else if (name == PropertyName._fieldBasis) {
+ this._fieldBasis = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Basis>(value);
return true;
}
- else if (name == PropertyName.field_Quaternion) {
- this.field_Quaternion = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Quaternion>(value);
+ else if (name == PropertyName._fieldQuaternion) {
+ this._fieldQuaternion = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Quaternion>(value);
return true;
}
- else if (name == PropertyName.field_Transform3D) {
- this.field_Transform3D = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Transform3D>(value);
+ else if (name == PropertyName._fieldTransform3D) {
+ this._fieldTransform3D = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Transform3D>(value);
return true;
}
- else if (name == PropertyName.field_Vector4) {
- this.field_Vector4 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector4>(value);
+ else if (name == PropertyName._fieldVector4) {
+ this._fieldVector4 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector4>(value);
return true;
}
- else if (name == PropertyName.field_Vector4I) {
- this.field_Vector4I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector4I>(value);
+ else if (name == PropertyName._fieldVector4I) {
+ this._fieldVector4I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector4I>(value);
return true;
}
- else if (name == PropertyName.field_Projection) {
- this.field_Projection = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Projection>(value);
+ else if (name == PropertyName._fieldProjection) {
+ this._fieldProjection = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Projection>(value);
return true;
}
- else if (name == PropertyName.field_Aabb) {
- this.field_Aabb = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Aabb>(value);
+ else if (name == PropertyName._fieldAabb) {
+ this._fieldAabb = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Aabb>(value);
return true;
}
- else if (name == PropertyName.field_Color) {
- this.field_Color = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Color>(value);
+ else if (name == PropertyName._fieldColor) {
+ this._fieldColor = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Color>(value);
return true;
}
- else if (name == PropertyName.field_Plane) {
- this.field_Plane = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Plane>(value);
+ else if (name == PropertyName._fieldPlane) {
+ this._fieldPlane = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Plane>(value);
return true;
}
- else if (name == PropertyName.field_Callable) {
- this.field_Callable = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Callable>(value);
+ else if (name == PropertyName._fieldCallable) {
+ this._fieldCallable = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Callable>(value);
return true;
}
- else if (name == PropertyName.field_Signal) {
- this.field_Signal = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Signal>(value);
+ else if (name == PropertyName._fieldSignal) {
+ this._fieldSignal = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Signal>(value);
return true;
}
- else if (name == PropertyName.field_Enum) {
- this.field_Enum = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::ExportedFields.MyEnum>(value);
+ else if (name == PropertyName._fieldEnum) {
+ this._fieldEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::ExportedFields.MyEnum>(value);
return true;
}
- else if (name == PropertyName.field_FlagsEnum) {
- this.field_FlagsEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::ExportedFields.MyFlagsEnum>(value);
+ else if (name == PropertyName._fieldFlagsEnum) {
+ this._fieldFlagsEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::ExportedFields.MyFlagsEnum>(value);
return true;
}
- else if (name == PropertyName.field_ByteArray) {
- this.field_ByteArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<byte[]>(value);
+ else if (name == PropertyName._fieldByteArray) {
+ this._fieldByteArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<byte[]>(value);
return true;
}
- else if (name == PropertyName.field_Int32Array) {
- this.field_Int32Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<int[]>(value);
+ else if (name == PropertyName._fieldInt32Array) {
+ this._fieldInt32Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<int[]>(value);
return true;
}
- else if (name == PropertyName.field_Int64Array) {
- this.field_Int64Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<long[]>(value);
+ else if (name == PropertyName._fieldInt64Array) {
+ this._fieldInt64Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<long[]>(value);
return true;
}
- else if (name == PropertyName.field_SingleArray) {
- this.field_SingleArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<float[]>(value);
+ else if (name == PropertyName._fieldSingleArray) {
+ this._fieldSingleArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<float[]>(value);
return true;
}
- else if (name == PropertyName.field_DoubleArray) {
- this.field_DoubleArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<double[]>(value);
+ else if (name == PropertyName._fieldDoubleArray) {
+ this._fieldDoubleArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<double[]>(value);
return true;
}
- else if (name == PropertyName.field_StringArray) {
- this.field_StringArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<string[]>(value);
+ else if (name == PropertyName._fieldStringArray) {
+ this._fieldStringArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<string[]>(value);
return true;
}
- else if (name == PropertyName.field_StringArrayEnum) {
- this.field_StringArrayEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<string[]>(value);
+ else if (name == PropertyName._fieldStringArrayEnum) {
+ this._fieldStringArrayEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<string[]>(value);
return true;
}
- else if (name == PropertyName.field_Vector2Array) {
- this.field_Vector2Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2[]>(value);
+ else if (name == PropertyName._fieldVector2Array) {
+ this._fieldVector2Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2[]>(value);
return true;
}
- else if (name == PropertyName.field_Vector3Array) {
- this.field_Vector3Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3[]>(value);
+ else if (name == PropertyName._fieldVector3Array) {
+ this._fieldVector3Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3[]>(value);
return true;
}
- else if (name == PropertyName.field_ColorArray) {
- this.field_ColorArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Color[]>(value);
+ else if (name == PropertyName._fieldColorArray) {
+ this._fieldColorArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Color[]>(value);
return true;
}
- else if (name == PropertyName.field_GodotObjectOrDerivedArray) {
- this.field_GodotObjectOrDerivedArray = global::Godot.NativeInterop.VariantUtils.ConvertToSystemArrayOfGodotObject<global::Godot.GodotObject>(value);
+ else if (name == PropertyName._fieldGodotObjectOrDerivedArray) {
+ this._fieldGodotObjectOrDerivedArray = global::Godot.NativeInterop.VariantUtils.ConvertToSystemArrayOfGodotObject<global::Godot.GodotObject>(value);
return true;
}
- else if (name == PropertyName.field_StringNameArray) {
- this.field_StringNameArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.StringName[]>(value);
+ else if (name == PropertyName._fieldStringNameArray) {
+ this._fieldStringNameArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.StringName[]>(value);
return true;
}
- else if (name == PropertyName.field_NodePathArray) {
- this.field_NodePathArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.NodePath[]>(value);
+ else if (name == PropertyName._fieldNodePathArray) {
+ this._fieldNodePathArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.NodePath[]>(value);
return true;
}
- else if (name == PropertyName.field_RidArray) {
- this.field_RidArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rid[]>(value);
+ else if (name == PropertyName._fieldRidArray) {
+ this._fieldRidArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rid[]>(value);
return true;
}
- else if (name == PropertyName.field_empty_Int32Array) {
- this.field_empty_Int32Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<int[]>(value);
+ else if (name == PropertyName._fieldEmptyInt32Array) {
+ this._fieldEmptyInt32Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<int[]>(value);
return true;
}
- else if (name == PropertyName.field_array_from_list) {
- this.field_array_from_list = global::Godot.NativeInterop.VariantUtils.ConvertTo<int[]>(value);
+ else if (name == PropertyName._fieldArrayFromList) {
+ this._fieldArrayFromList = global::Godot.NativeInterop.VariantUtils.ConvertTo<int[]>(value);
return true;
}
- else if (name == PropertyName.field_Variant) {
- this.field_Variant = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Variant>(value);
+ else if (name == PropertyName._fieldVariant) {
+ this._fieldVariant = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Variant>(value);
return true;
}
- else if (name == PropertyName.field_GodotObjectOrDerived) {
- this.field_GodotObjectOrDerived = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.GodotObject>(value);
+ else if (name == PropertyName._fieldGodotObjectOrDerived) {
+ this._fieldGodotObjectOrDerived = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.GodotObject>(value);
return true;
}
- else if (name == PropertyName.field_GodotResourceTexture) {
- this.field_GodotResourceTexture = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Texture>(value);
+ else if (name == PropertyName._fieldGodotResourceTexture) {
+ this._fieldGodotResourceTexture = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Texture>(value);
return true;
}
- else if (name == PropertyName.field_StringName) {
- this.field_StringName = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.StringName>(value);
+ else if (name == PropertyName._fieldStringName) {
+ this._fieldStringName = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.StringName>(value);
return true;
}
- else if (name == PropertyName.field_NodePath) {
- this.field_NodePath = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.NodePath>(value);
+ else if (name == PropertyName._fieldNodePath) {
+ this._fieldNodePath = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.NodePath>(value);
return true;
}
- else if (name == PropertyName.field_Rid) {
- this.field_Rid = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rid>(value);
+ else if (name == PropertyName._fieldRid) {
+ this._fieldRid = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rid>(value);
return true;
}
- else if (name == PropertyName.field_GodotDictionary) {
- this.field_GodotDictionary = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Collections.Dictionary>(value);
+ else if (name == PropertyName._fieldGodotDictionary) {
+ this._fieldGodotDictionary = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Collections.Dictionary>(value);
return true;
}
- else if (name == PropertyName.field_GodotArray) {
- this.field_GodotArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Collections.Array>(value);
+ else if (name == PropertyName._fieldGodotArray) {
+ this._fieldGodotArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Collections.Array>(value);
return true;
}
- else if (name == PropertyName.field_GodotGenericDictionary) {
- this.field_GodotGenericDictionary = global::Godot.NativeInterop.VariantUtils.ConvertToDictionary<string, bool>(value);
+ else if (name == PropertyName._fieldGodotGenericDictionary) {
+ this._fieldGodotGenericDictionary = global::Godot.NativeInterop.VariantUtils.ConvertToDictionary<string, bool>(value);
return true;
}
- else if (name == PropertyName.field_GodotGenericArray) {
- this.field_GodotGenericArray = global::Godot.NativeInterop.VariantUtils.ConvertToArray<int>(value);
+ else if (name == PropertyName._fieldGodotGenericArray) {
+ this._fieldGodotGenericArray = global::Godot.NativeInterop.VariantUtils.ConvertToArray<int>(value);
return true;
}
- else if (name == PropertyName.field_empty_Int64Array) {
- this.field_empty_Int64Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<long[]>(value);
+ else if (name == PropertyName._fieldEmptyInt64Array) {
+ this._fieldEmptyInt64Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<long[]>(value);
return true;
}
return base.SetGodotClassPropertyValue(name, value);
@@ -499,244 +499,244 @@ partial class ExportedFields
[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.field_Boolean) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this.field_Boolean);
+ if (name == PropertyName._fieldBoolean) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this._fieldBoolean);
return true;
}
- else if (name == PropertyName.field_Char) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<char>(this.field_Char);
+ else if (name == PropertyName._fieldChar) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<char>(this._fieldChar);
return true;
}
- else if (name == PropertyName.field_SByte) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<sbyte>(this.field_SByte);
+ else if (name == PropertyName._fieldSByte) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<sbyte>(this._fieldSByte);
return true;
}
- else if (name == PropertyName.field_Int16) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<short>(this.field_Int16);
+ else if (name == PropertyName._fieldInt16) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<short>(this._fieldInt16);
return true;
}
- else if (name == PropertyName.field_Int32) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int>(this.field_Int32);
+ else if (name == PropertyName._fieldInt32) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int>(this._fieldInt32);
return true;
}
- else if (name == PropertyName.field_Int64) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long>(this.field_Int64);
+ else if (name == PropertyName._fieldInt64) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long>(this._fieldInt64);
return true;
}
- else if (name == PropertyName.field_Byte) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<byte>(this.field_Byte);
+ else if (name == PropertyName._fieldByte) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<byte>(this._fieldByte);
return true;
}
- else if (name == PropertyName.field_UInt16) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<ushort>(this.field_UInt16);
+ else if (name == PropertyName._fieldUInt16) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<ushort>(this._fieldUInt16);
return true;
}
- else if (name == PropertyName.field_UInt32) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<uint>(this.field_UInt32);
+ else if (name == PropertyName._fieldUInt32) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<uint>(this._fieldUInt32);
return true;
}
- else if (name == PropertyName.field_UInt64) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<ulong>(this.field_UInt64);
+ else if (name == PropertyName._fieldUInt64) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<ulong>(this._fieldUInt64);
return true;
}
- else if (name == PropertyName.field_Single) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<float>(this.field_Single);
+ else if (name == PropertyName._fieldSingle) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<float>(this._fieldSingle);
return true;
}
- else if (name == PropertyName.field_Double) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<double>(this.field_Double);
+ else if (name == PropertyName._fieldDouble) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<double>(this._fieldDouble);
return true;
}
- else if (name == PropertyName.field_String) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.field_String);
+ else if (name == PropertyName._fieldString) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._fieldString);
return true;
}
- else if (name == PropertyName.field_Vector2) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2>(this.field_Vector2);
+ else if (name == PropertyName._fieldVector2) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2>(this._fieldVector2);
return true;
}
- else if (name == PropertyName.field_Vector2I) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2I>(this.field_Vector2I);
+ else if (name == PropertyName._fieldVector2I) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2I>(this._fieldVector2I);
return true;
}
- else if (name == PropertyName.field_Rect2) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rect2>(this.field_Rect2);
+ else if (name == PropertyName._fieldRect2) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rect2>(this._fieldRect2);
return true;
}
- else if (name == PropertyName.field_Rect2I) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rect2I>(this.field_Rect2I);
+ else if (name == PropertyName._fieldRect2I) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rect2I>(this._fieldRect2I);
return true;
}
- else if (name == PropertyName.field_Transform2D) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Transform2D>(this.field_Transform2D);
+ else if (name == PropertyName._fieldTransform2D) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Transform2D>(this._fieldTransform2D);
return true;
}
- else if (name == PropertyName.field_Vector3) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3>(this.field_Vector3);
+ else if (name == PropertyName._fieldVector3) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3>(this._fieldVector3);
return true;
}
- else if (name == PropertyName.field_Vector3I) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3I>(this.field_Vector3I);
+ else if (name == PropertyName._fieldVector3I) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3I>(this._fieldVector3I);
return true;
}
- else if (name == PropertyName.field_Basis) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Basis>(this.field_Basis);
+ else if (name == PropertyName._fieldBasis) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Basis>(this._fieldBasis);
return true;
}
- else if (name == PropertyName.field_Quaternion) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Quaternion>(this.field_Quaternion);
+ else if (name == PropertyName._fieldQuaternion) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Quaternion>(this._fieldQuaternion);
return true;
}
- else if (name == PropertyName.field_Transform3D) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Transform3D>(this.field_Transform3D);
+ else if (name == PropertyName._fieldTransform3D) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Transform3D>(this._fieldTransform3D);
return true;
}
- else if (name == PropertyName.field_Vector4) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector4>(this.field_Vector4);
+ else if (name == PropertyName._fieldVector4) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector4>(this._fieldVector4);
return true;
}
- else if (name == PropertyName.field_Vector4I) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector4I>(this.field_Vector4I);
+ else if (name == PropertyName._fieldVector4I) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector4I>(this._fieldVector4I);
return true;
}
- else if (name == PropertyName.field_Projection) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Projection>(this.field_Projection);
+ else if (name == PropertyName._fieldProjection) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Projection>(this._fieldProjection);
return true;
}
- else if (name == PropertyName.field_Aabb) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Aabb>(this.field_Aabb);
+ else if (name == PropertyName._fieldAabb) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Aabb>(this._fieldAabb);
return true;
}
- else if (name == PropertyName.field_Color) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Color>(this.field_Color);
+ else if (name == PropertyName._fieldColor) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Color>(this._fieldColor);
return true;
}
- else if (name == PropertyName.field_Plane) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Plane>(this.field_Plane);
+ else if (name == PropertyName._fieldPlane) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Plane>(this._fieldPlane);
return true;
}
- else if (name == PropertyName.field_Callable) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.field_Callable);
+ else if (name == PropertyName._fieldCallable) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this._fieldCallable);
return true;
}
- else if (name == PropertyName.field_Signal) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Signal>(this.field_Signal);
+ else if (name == PropertyName._fieldSignal) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Signal>(this._fieldSignal);
return true;
}
- else if (name == PropertyName.field_Enum) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::ExportedFields.MyEnum>(this.field_Enum);
+ else if (name == PropertyName._fieldEnum) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::ExportedFields.MyEnum>(this._fieldEnum);
return true;
}
- else if (name == PropertyName.field_FlagsEnum) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::ExportedFields.MyFlagsEnum>(this.field_FlagsEnum);
+ else if (name == PropertyName._fieldFlagsEnum) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::ExportedFields.MyFlagsEnum>(this._fieldFlagsEnum);
return true;
}
- else if (name == PropertyName.field_ByteArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<byte[]>(this.field_ByteArray);
+ else if (name == PropertyName._fieldByteArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<byte[]>(this._fieldByteArray);
return true;
}
- else if (name == PropertyName.field_Int32Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int[]>(this.field_Int32Array);
+ else if (name == PropertyName._fieldInt32Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int[]>(this._fieldInt32Array);
return true;
}
- else if (name == PropertyName.field_Int64Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long[]>(this.field_Int64Array);
+ else if (name == PropertyName._fieldInt64Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long[]>(this._fieldInt64Array);
return true;
}
- else if (name == PropertyName.field_SingleArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<float[]>(this.field_SingleArray);
+ else if (name == PropertyName._fieldSingleArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<float[]>(this._fieldSingleArray);
return true;
}
- else if (name == PropertyName.field_DoubleArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<double[]>(this.field_DoubleArray);
+ else if (name == PropertyName._fieldDoubleArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<double[]>(this._fieldDoubleArray);
return true;
}
- else if (name == PropertyName.field_StringArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string[]>(this.field_StringArray);
+ else if (name == PropertyName._fieldStringArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string[]>(this._fieldStringArray);
return true;
}
- else if (name == PropertyName.field_StringArrayEnum) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string[]>(this.field_StringArrayEnum);
+ else if (name == PropertyName._fieldStringArrayEnum) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string[]>(this._fieldStringArrayEnum);
return true;
}
- else if (name == PropertyName.field_Vector2Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2[]>(this.field_Vector2Array);
+ else if (name == PropertyName._fieldVector2Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2[]>(this._fieldVector2Array);
return true;
}
- else if (name == PropertyName.field_Vector3Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3[]>(this.field_Vector3Array);
+ else if (name == PropertyName._fieldVector3Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3[]>(this._fieldVector3Array);
return true;
}
- else if (name == PropertyName.field_ColorArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Color[]>(this.field_ColorArray);
+ else if (name == PropertyName._fieldColorArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Color[]>(this._fieldColorArray);
return true;
}
- else if (name == PropertyName.field_GodotObjectOrDerivedArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFromSystemArrayOfGodotObject(this.field_GodotObjectOrDerivedArray);
+ else if (name == PropertyName._fieldGodotObjectOrDerivedArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFromSystemArrayOfGodotObject(this._fieldGodotObjectOrDerivedArray);
return true;
}
- else if (name == PropertyName.field_StringNameArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.StringName[]>(this.field_StringNameArray);
+ else if (name == PropertyName._fieldStringNameArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.StringName[]>(this._fieldStringNameArray);
return true;
}
- else if (name == PropertyName.field_NodePathArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.NodePath[]>(this.field_NodePathArray);
+ else if (name == PropertyName._fieldNodePathArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.NodePath[]>(this._fieldNodePathArray);
return true;
}
- else if (name == PropertyName.field_RidArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rid[]>(this.field_RidArray);
+ else if (name == PropertyName._fieldRidArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rid[]>(this._fieldRidArray);
return true;
}
- else if (name == PropertyName.field_empty_Int32Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int[]>(this.field_empty_Int32Array);
+ else if (name == PropertyName._fieldEmptyInt32Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int[]>(this._fieldEmptyInt32Array);
return true;
}
- else if (name == PropertyName.field_array_from_list) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int[]>(this.field_array_from_list);
+ else if (name == PropertyName._fieldArrayFromList) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int[]>(this._fieldArrayFromList);
return true;
}
- else if (name == PropertyName.field_Variant) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Variant>(this.field_Variant);
+ else if (name == PropertyName._fieldVariant) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Variant>(this._fieldVariant);
return true;
}
- else if (name == PropertyName.field_GodotObjectOrDerived) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.GodotObject>(this.field_GodotObjectOrDerived);
+ else if (name == PropertyName._fieldGodotObjectOrDerived) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.GodotObject>(this._fieldGodotObjectOrDerived);
return true;
}
- else if (name == PropertyName.field_GodotResourceTexture) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Texture>(this.field_GodotResourceTexture);
+ else if (name == PropertyName._fieldGodotResourceTexture) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Texture>(this._fieldGodotResourceTexture);
return true;
}
- else if (name == PropertyName.field_StringName) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.StringName>(this.field_StringName);
+ else if (name == PropertyName._fieldStringName) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.StringName>(this._fieldStringName);
return true;
}
- else if (name == PropertyName.field_NodePath) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.NodePath>(this.field_NodePath);
+ else if (name == PropertyName._fieldNodePath) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.NodePath>(this._fieldNodePath);
return true;
}
- else if (name == PropertyName.field_Rid) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rid>(this.field_Rid);
+ else if (name == PropertyName._fieldRid) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rid>(this._fieldRid);
return true;
}
- else if (name == PropertyName.field_GodotDictionary) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Collections.Dictionary>(this.field_GodotDictionary);
+ else if (name == PropertyName._fieldGodotDictionary) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Collections.Dictionary>(this._fieldGodotDictionary);
return true;
}
- else if (name == PropertyName.field_GodotArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Collections.Array>(this.field_GodotArray);
+ else if (name == PropertyName._fieldGodotArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Collections.Array>(this._fieldGodotArray);
return true;
}
- else if (name == PropertyName.field_GodotGenericDictionary) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFromDictionary(this.field_GodotGenericDictionary);
+ else if (name == PropertyName._fieldGodotGenericDictionary) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFromDictionary(this._fieldGodotGenericDictionary);
return true;
}
- else if (name == PropertyName.field_GodotGenericArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFromArray(this.field_GodotGenericArray);
+ else if (name == PropertyName._fieldGodotGenericArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFromArray(this._fieldGodotGenericArray);
return true;
}
- else if (name == PropertyName.field_empty_Int64Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long[]>(this.field_empty_Int64Array);
+ else if (name == PropertyName._fieldEmptyInt64Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long[]>(this._fieldEmptyInt64Array);
return true;
}
return base.GetGodotClassPropertyValue(name, out value);
@@ -750,66 +750,66 @@ partial class ExportedFields
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList()
{
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>();
- properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.field_Boolean, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_Char, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_SByte, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_Int16, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_Int32, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_Int64, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_Byte, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_UInt16, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_UInt32, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_UInt64, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)3, name: PropertyName.field_Single, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)3, name: PropertyName.field_Double, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.field_String, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)5, name: PropertyName.field_Vector2, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)6, name: PropertyName.field_Vector2I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)7, name: PropertyName.field_Rect2, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)8, name: PropertyName.field_Rect2I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)11, name: PropertyName.field_Transform2D, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)9, name: PropertyName.field_Vector3, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)10, name: PropertyName.field_Vector3I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)17, name: PropertyName.field_Basis, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)15, name: PropertyName.field_Quaternion, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)18, name: PropertyName.field_Transform3D, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)12, name: PropertyName.field_Vector4, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)13, name: PropertyName.field_Vector4I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)19, name: PropertyName.field_Projection, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)16, name: PropertyName.field_Aabb, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)20, name: PropertyName.field_Color, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)14, name: PropertyName.field_Plane, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.field_Callable, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)26, name: PropertyName.field_Signal, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_Enum, hint: (global::Godot.PropertyHint)2, hintString: "A,B,C", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.field_FlagsEnum, hint: (global::Godot.PropertyHint)6, hintString: "A:0,B:1,C:2", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)29, name: PropertyName.field_ByteArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)30, name: PropertyName.field_Int32Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)31, name: PropertyName.field_Int64Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)32, name: PropertyName.field_SingleArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)33, name: PropertyName.field_DoubleArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)34, name: PropertyName.field_StringArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)34, name: PropertyName.field_StringArrayEnum, hint: (global::Godot.PropertyHint)23, hintString: "4/2:A,B,C", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)35, name: PropertyName.field_Vector2Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)36, name: PropertyName.field_Vector3Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)37, name: PropertyName.field_ColorArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_GodotObjectOrDerivedArray, hint: (global::Godot.PropertyHint)23, hintString: "24/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_StringNameArray, hint: (global::Godot.PropertyHint)23, hintString: "21/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_NodePathArray, hint: (global::Godot.PropertyHint)23, hintString: "22/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_RidArray, hint: (global::Godot.PropertyHint)23, hintString: "23/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)30, name: PropertyName.field_empty_Int32Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)30, name: PropertyName.field_array_from_list, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)0, name: PropertyName.field_Variant, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)135174, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)24, name: PropertyName.field_GodotObjectOrDerived, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)24, name: PropertyName.field_GodotResourceTexture, hint: (global::Godot.PropertyHint)17, hintString: "Texture", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)21, name: PropertyName.field_StringName, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)22, name: PropertyName.field_NodePath, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)23, name: PropertyName.field_Rid, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)27, name: PropertyName.field_GodotDictionary, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_GodotArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)27, name: PropertyName.field_GodotGenericDictionary, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_GodotGenericArray, hint: (global::Godot.PropertyHint)23, hintString: "2/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)31, name: PropertyName.field_empty_Int64Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName._fieldBoolean, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldChar, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldSByte, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldInt16, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldInt32, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldInt64, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldByte, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldUInt16, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldUInt32, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldUInt64, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)3, name: PropertyName._fieldSingle, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)3, name: PropertyName._fieldDouble, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._fieldString, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)5, name: PropertyName._fieldVector2, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)6, name: PropertyName._fieldVector2I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)7, name: PropertyName._fieldRect2, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)8, name: PropertyName._fieldRect2I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)11, name: PropertyName._fieldTransform2D, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)9, name: PropertyName._fieldVector3, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)10, name: PropertyName._fieldVector3I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)17, name: PropertyName._fieldBasis, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)15, name: PropertyName._fieldQuaternion, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)18, name: PropertyName._fieldTransform3D, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)12, name: PropertyName._fieldVector4, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)13, name: PropertyName._fieldVector4I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)19, name: PropertyName._fieldProjection, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)16, name: PropertyName._fieldAabb, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)20, name: PropertyName._fieldColor, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)14, name: PropertyName._fieldPlane, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName._fieldCallable, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)26, name: PropertyName._fieldSignal, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldEnum, hint: (global::Godot.PropertyHint)2, hintString: "A,B,C", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._fieldFlagsEnum, hint: (global::Godot.PropertyHint)6, hintString: "A:0,B:1,C:2", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)29, name: PropertyName._fieldByteArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)30, name: PropertyName._fieldInt32Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)31, name: PropertyName._fieldInt64Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)32, name: PropertyName._fieldSingleArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)33, name: PropertyName._fieldDoubleArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)34, name: PropertyName._fieldStringArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)34, name: PropertyName._fieldStringArrayEnum, hint: (global::Godot.PropertyHint)23, hintString: "4/2:A,B,C", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)35, name: PropertyName._fieldVector2Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)36, name: PropertyName._fieldVector3Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)37, name: PropertyName._fieldColorArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName._fieldGodotObjectOrDerivedArray, hint: (global::Godot.PropertyHint)23, hintString: "24/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName._fieldStringNameArray, hint: (global::Godot.PropertyHint)23, hintString: "21/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName._fieldNodePathArray, hint: (global::Godot.PropertyHint)23, hintString: "22/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName._fieldRidArray, hint: (global::Godot.PropertyHint)23, hintString: "23/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)30, name: PropertyName._fieldEmptyInt32Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)30, name: PropertyName._fieldArrayFromList, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)0, name: PropertyName._fieldVariant, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)135174, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)24, name: PropertyName._fieldGodotObjectOrDerived, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)24, name: PropertyName._fieldGodotResourceTexture, hint: (global::Godot.PropertyHint)17, hintString: "Texture", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)21, name: PropertyName._fieldStringName, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)22, name: PropertyName._fieldNodePath, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)23, name: PropertyName._fieldRid, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)27, name: PropertyName._fieldGodotDictionary, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName._fieldGodotArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)27, name: PropertyName._fieldGodotGenericDictionary, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName._fieldGodotGenericArray, hint: (global::Godot.PropertyHint)23, hintString: "2/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)31, name: PropertyName._fieldEmptyInt64Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
return properties;
}
#pragma warning restore CS0109
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptPropertyDefVal.generated.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptPropertyDefVal.generated.cs
index 185b8e4ac6..367cb073c0 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptPropertyDefVal.generated.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptPropertyDefVal.generated.cs
@@ -12,126 +12,126 @@ partial class ExportedFields
internal new static global::System.Collections.Generic.Dictionary<global::Godot.StringName, global::Godot.Variant> GetGodotPropertyDefaultValues()
{
var values = new global::System.Collections.Generic.Dictionary<global::Godot.StringName, global::Godot.Variant>(60);
- bool __field_Boolean_default_value = true;
- values.Add(PropertyName.field_Boolean, global::Godot.Variant.From<bool>(__field_Boolean_default_value));
- char __field_Char_default_value = 'f';
- values.Add(PropertyName.field_Char, global::Godot.Variant.From<char>(__field_Char_default_value));
- sbyte __field_SByte_default_value = 10;
- values.Add(PropertyName.field_SByte, global::Godot.Variant.From<sbyte>(__field_SByte_default_value));
- short __field_Int16_default_value = 10;
- values.Add(PropertyName.field_Int16, global::Godot.Variant.From<short>(__field_Int16_default_value));
- int __field_Int32_default_value = 10;
- values.Add(PropertyName.field_Int32, global::Godot.Variant.From<int>(__field_Int32_default_value));
- long __field_Int64_default_value = 10;
- values.Add(PropertyName.field_Int64, global::Godot.Variant.From<long>(__field_Int64_default_value));
- byte __field_Byte_default_value = 10;
- values.Add(PropertyName.field_Byte, global::Godot.Variant.From<byte>(__field_Byte_default_value));
- ushort __field_UInt16_default_value = 10;
- values.Add(PropertyName.field_UInt16, global::Godot.Variant.From<ushort>(__field_UInt16_default_value));
- uint __field_UInt32_default_value = 10;
- values.Add(PropertyName.field_UInt32, global::Godot.Variant.From<uint>(__field_UInt32_default_value));
- ulong __field_UInt64_default_value = 10;
- values.Add(PropertyName.field_UInt64, global::Godot.Variant.From<ulong>(__field_UInt64_default_value));
- float __field_Single_default_value = 10;
- values.Add(PropertyName.field_Single, global::Godot.Variant.From<float>(__field_Single_default_value));
- double __field_Double_default_value = 10;
- values.Add(PropertyName.field_Double, global::Godot.Variant.From<double>(__field_Double_default_value));
- string __field_String_default_value = "foo";
- values.Add(PropertyName.field_String, global::Godot.Variant.From<string>(__field_String_default_value));
- global::Godot.Vector2 __field_Vector2_default_value = new(10f, 10f);
- values.Add(PropertyName.field_Vector2, global::Godot.Variant.From<global::Godot.Vector2>(__field_Vector2_default_value));
- global::Godot.Vector2I __field_Vector2I_default_value = global::Godot.Vector2I.Up;
- values.Add(PropertyName.field_Vector2I, global::Godot.Variant.From<global::Godot.Vector2I>(__field_Vector2I_default_value));
- global::Godot.Rect2 __field_Rect2_default_value = new(new global::Godot.Vector2(10f, 10f), new global::Godot.Vector2(10f, 10f));
- values.Add(PropertyName.field_Rect2, global::Godot.Variant.From<global::Godot.Rect2>(__field_Rect2_default_value));
- global::Godot.Rect2I __field_Rect2I_default_value = new(new global::Godot.Vector2I(10, 10), new global::Godot.Vector2I(10, 10));
- values.Add(PropertyName.field_Rect2I, global::Godot.Variant.From<global::Godot.Rect2I>(__field_Rect2I_default_value));
- global::Godot.Transform2D __field_Transform2D_default_value = global::Godot.Transform2D.Identity;
- values.Add(PropertyName.field_Transform2D, global::Godot.Variant.From<global::Godot.Transform2D>(__field_Transform2D_default_value));
- global::Godot.Vector3 __field_Vector3_default_value = new(10f, 10f, 10f);
- values.Add(PropertyName.field_Vector3, global::Godot.Variant.From<global::Godot.Vector3>(__field_Vector3_default_value));
- global::Godot.Vector3I __field_Vector3I_default_value = global::Godot.Vector3I.Back;
- values.Add(PropertyName.field_Vector3I, global::Godot.Variant.From<global::Godot.Vector3I>(__field_Vector3I_default_value));
- global::Godot.Basis __field_Basis_default_value = new global::Godot.Basis(global::Godot.Quaternion.Identity);
- values.Add(PropertyName.field_Basis, global::Godot.Variant.From<global::Godot.Basis>(__field_Basis_default_value));
- global::Godot.Quaternion __field_Quaternion_default_value = new global::Godot.Quaternion(global::Godot.Basis.Identity);
- values.Add(PropertyName.field_Quaternion, global::Godot.Variant.From<global::Godot.Quaternion>(__field_Quaternion_default_value));
- global::Godot.Transform3D __field_Transform3D_default_value = global::Godot.Transform3D.Identity;
- values.Add(PropertyName.field_Transform3D, global::Godot.Variant.From<global::Godot.Transform3D>(__field_Transform3D_default_value));
- global::Godot.Vector4 __field_Vector4_default_value = new(10f, 10f, 10f, 10f);
- values.Add(PropertyName.field_Vector4, global::Godot.Variant.From<global::Godot.Vector4>(__field_Vector4_default_value));
- global::Godot.Vector4I __field_Vector4I_default_value = global::Godot.Vector4I.One;
- values.Add(PropertyName.field_Vector4I, global::Godot.Variant.From<global::Godot.Vector4I>(__field_Vector4I_default_value));
- global::Godot.Projection __field_Projection_default_value = global::Godot.Projection.Identity;
- values.Add(PropertyName.field_Projection, global::Godot.Variant.From<global::Godot.Projection>(__field_Projection_default_value));
- global::Godot.Aabb __field_Aabb_default_value = new global::Godot.Aabb(10f, 10f, 10f, new global::Godot.Vector3(1f, 1f, 1f));
- values.Add(PropertyName.field_Aabb, global::Godot.Variant.From<global::Godot.Aabb>(__field_Aabb_default_value));
- global::Godot.Color __field_Color_default_value = global::Godot.Colors.Aquamarine;
- values.Add(PropertyName.field_Color, global::Godot.Variant.From<global::Godot.Color>(__field_Color_default_value));
- global::Godot.Plane __field_Plane_default_value = global::Godot.Plane.PlaneXZ;
- values.Add(PropertyName.field_Plane, global::Godot.Variant.From<global::Godot.Plane>(__field_Plane_default_value));
- global::Godot.Callable __field_Callable_default_value = new global::Godot.Callable(global::Godot.Engine.GetMainLoop(), "_process");
- values.Add(PropertyName.field_Callable, global::Godot.Variant.From<global::Godot.Callable>(__field_Callable_default_value));
- global::Godot.Signal __field_Signal_default_value = new global::Godot.Signal(global::Godot.Engine.GetMainLoop(), "property_list_changed");
- values.Add(PropertyName.field_Signal, global::Godot.Variant.From<global::Godot.Signal>(__field_Signal_default_value));
- global::ExportedFields.MyEnum __field_Enum_default_value = global::ExportedFields.MyEnum.C;
- values.Add(PropertyName.field_Enum, global::Godot.Variant.From<global::ExportedFields.MyEnum>(__field_Enum_default_value));
- global::ExportedFields.MyFlagsEnum __field_FlagsEnum_default_value = global::ExportedFields.MyFlagsEnum.C;
- values.Add(PropertyName.field_FlagsEnum, global::Godot.Variant.From<global::ExportedFields.MyFlagsEnum>(__field_FlagsEnum_default_value));
- byte[] __field_ByteArray_default_value = { 0, 1, 2, 3, 4, 5, 6 };
- values.Add(PropertyName.field_ByteArray, global::Godot.Variant.From<byte[]>(__field_ByteArray_default_value));
- int[] __field_Int32Array_default_value = { 0, 1, 2, 3, 4, 5, 6 };
- values.Add(PropertyName.field_Int32Array, global::Godot.Variant.From<int[]>(__field_Int32Array_default_value));
- long[] __field_Int64Array_default_value = { 0, 1, 2, 3, 4, 5, 6 };
- values.Add(PropertyName.field_Int64Array, global::Godot.Variant.From<long[]>(__field_Int64Array_default_value));
- float[] __field_SingleArray_default_value = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
- values.Add(PropertyName.field_SingleArray, global::Godot.Variant.From<float[]>(__field_SingleArray_default_value));
- double[] __field_DoubleArray_default_value = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
- values.Add(PropertyName.field_DoubleArray, global::Godot.Variant.From<double[]>(__field_DoubleArray_default_value));
- string[] __field_StringArray_default_value = { "foo", "bar" };
- values.Add(PropertyName.field_StringArray, global::Godot.Variant.From<string[]>(__field_StringArray_default_value));
- string[] __field_StringArrayEnum_default_value = { "foo", "bar" };
- values.Add(PropertyName.field_StringArrayEnum, global::Godot.Variant.From<string[]>(__field_StringArrayEnum_default_value));
- global::Godot.Vector2[] __field_Vector2Array_default_value = { global::Godot.Vector2.Up, global::Godot.Vector2.Down, global::Godot.Vector2.Left, global::Godot.Vector2.Right };
- values.Add(PropertyName.field_Vector2Array, global::Godot.Variant.From<global::Godot.Vector2[]>(__field_Vector2Array_default_value));
- global::Godot.Vector3[] __field_Vector3Array_default_value = { global::Godot.Vector3.Up, global::Godot.Vector3.Down, global::Godot.Vector3.Left, global::Godot.Vector3.Right };
- values.Add(PropertyName.field_Vector3Array, global::Godot.Variant.From<global::Godot.Vector3[]>(__field_Vector3Array_default_value));
- global::Godot.Color[] __field_ColorArray_default_value = { global::Godot.Colors.Aqua, global::Godot.Colors.Aquamarine, global::Godot.Colors.Azure, global::Godot.Colors.Beige };
- values.Add(PropertyName.field_ColorArray, global::Godot.Variant.From<global::Godot.Color[]>(__field_ColorArray_default_value));
- global::Godot.GodotObject[] __field_GodotObjectOrDerivedArray_default_value = { null };
- values.Add(PropertyName.field_GodotObjectOrDerivedArray, global::Godot.Variant.CreateFrom(__field_GodotObjectOrDerivedArray_default_value));
- global::Godot.StringName[] __field_StringNameArray_default_value = { "foo", "bar" };
- values.Add(PropertyName.field_StringNameArray, global::Godot.Variant.From<global::Godot.StringName[]>(__field_StringNameArray_default_value));
- global::Godot.NodePath[] __field_NodePathArray_default_value = { "foo", "bar" };
- values.Add(PropertyName.field_NodePathArray, global::Godot.Variant.From<global::Godot.NodePath[]>(__field_NodePathArray_default_value));
- global::Godot.Rid[] __field_RidArray_default_value = { default, default, default };
- values.Add(PropertyName.field_RidArray, global::Godot.Variant.From<global::Godot.Rid[]>(__field_RidArray_default_value));
- int[] __field_empty_Int32Array_default_value = global::System.Array.Empty<int>();
- values.Add(PropertyName.field_empty_Int32Array, global::Godot.Variant.From<int[]>(__field_empty_Int32Array_default_value));
- int[] __field_array_from_list_default_value = new global::System.Collections.Generic.List<int>(global::System.Array.Empty<int>()).ToArray();
- values.Add(PropertyName.field_array_from_list, global::Godot.Variant.From<int[]>(__field_array_from_list_default_value));
- global::Godot.Variant __field_Variant_default_value = "foo";
- values.Add(PropertyName.field_Variant, global::Godot.Variant.From<global::Godot.Variant>(__field_Variant_default_value));
- global::Godot.GodotObject __field_GodotObjectOrDerived_default_value = default;
- values.Add(PropertyName.field_GodotObjectOrDerived, global::Godot.Variant.From<global::Godot.GodotObject>(__field_GodotObjectOrDerived_default_value));
- global::Godot.Texture __field_GodotResourceTexture_default_value = default;
- values.Add(PropertyName.field_GodotResourceTexture, global::Godot.Variant.From<global::Godot.Texture>(__field_GodotResourceTexture_default_value));
- global::Godot.StringName __field_StringName_default_value = new global::Godot.StringName("foo");
- values.Add(PropertyName.field_StringName, global::Godot.Variant.From<global::Godot.StringName>(__field_StringName_default_value));
- global::Godot.NodePath __field_NodePath_default_value = new global::Godot.NodePath("foo");
- values.Add(PropertyName.field_NodePath, global::Godot.Variant.From<global::Godot.NodePath>(__field_NodePath_default_value));
- global::Godot.Rid __field_Rid_default_value = default;
- values.Add(PropertyName.field_Rid, global::Godot.Variant.From<global::Godot.Rid>(__field_Rid_default_value));
- global::Godot.Collections.Dictionary __field_GodotDictionary_default_value = new() { { "foo", 10 }, { global::Godot.Vector2.Up, global::Godot.Colors.Chocolate } };
- values.Add(PropertyName.field_GodotDictionary, global::Godot.Variant.From<global::Godot.Collections.Dictionary>(__field_GodotDictionary_default_value));
- global::Godot.Collections.Array __field_GodotArray_default_value = new() { "foo", 10, global::Godot.Vector2.Up, global::Godot.Colors.Chocolate };
- values.Add(PropertyName.field_GodotArray, global::Godot.Variant.From<global::Godot.Collections.Array>(__field_GodotArray_default_value));
- global::Godot.Collections.Dictionary<string, bool> __field_GodotGenericDictionary_default_value = new() { { "foo", true }, { "bar", false } };
- values.Add(PropertyName.field_GodotGenericDictionary, global::Godot.Variant.CreateFrom(__field_GodotGenericDictionary_default_value));
- global::Godot.Collections.Array<int> __field_GodotGenericArray_default_value = new() { 0, 1, 2, 3, 4, 5, 6 };
- values.Add(PropertyName.field_GodotGenericArray, global::Godot.Variant.CreateFrom(__field_GodotGenericArray_default_value));
- long[] __field_empty_Int64Array_default_value = global::System.Array.Empty<long>();
- values.Add(PropertyName.field_empty_Int64Array, global::Godot.Variant.From<long[]>(__field_empty_Int64Array_default_value));
+ bool ___fieldBoolean_default_value = true;
+ values.Add(PropertyName._fieldBoolean, global::Godot.Variant.From<bool>(___fieldBoolean_default_value));
+ char ___fieldChar_default_value = 'f';
+ values.Add(PropertyName._fieldChar, global::Godot.Variant.From<char>(___fieldChar_default_value));
+ sbyte ___fieldSByte_default_value = 10;
+ values.Add(PropertyName._fieldSByte, global::Godot.Variant.From<sbyte>(___fieldSByte_default_value));
+ short ___fieldInt16_default_value = 10;
+ values.Add(PropertyName._fieldInt16, global::Godot.Variant.From<short>(___fieldInt16_default_value));
+ int ___fieldInt32_default_value = 10;
+ values.Add(PropertyName._fieldInt32, global::Godot.Variant.From<int>(___fieldInt32_default_value));
+ long ___fieldInt64_default_value = 10;
+ values.Add(PropertyName._fieldInt64, global::Godot.Variant.From<long>(___fieldInt64_default_value));
+ byte ___fieldByte_default_value = 10;
+ values.Add(PropertyName._fieldByte, global::Godot.Variant.From<byte>(___fieldByte_default_value));
+ ushort ___fieldUInt16_default_value = 10;
+ values.Add(PropertyName._fieldUInt16, global::Godot.Variant.From<ushort>(___fieldUInt16_default_value));
+ uint ___fieldUInt32_default_value = 10;
+ values.Add(PropertyName._fieldUInt32, global::Godot.Variant.From<uint>(___fieldUInt32_default_value));
+ ulong ___fieldUInt64_default_value = 10;
+ values.Add(PropertyName._fieldUInt64, global::Godot.Variant.From<ulong>(___fieldUInt64_default_value));
+ float ___fieldSingle_default_value = 10;
+ values.Add(PropertyName._fieldSingle, global::Godot.Variant.From<float>(___fieldSingle_default_value));
+ double ___fieldDouble_default_value = 10;
+ values.Add(PropertyName._fieldDouble, global::Godot.Variant.From<double>(___fieldDouble_default_value));
+ string ___fieldString_default_value = "foo";
+ values.Add(PropertyName._fieldString, global::Godot.Variant.From<string>(___fieldString_default_value));
+ global::Godot.Vector2 ___fieldVector2_default_value = new(10f, 10f);
+ values.Add(PropertyName._fieldVector2, global::Godot.Variant.From<global::Godot.Vector2>(___fieldVector2_default_value));
+ global::Godot.Vector2I ___fieldVector2I_default_value = global::Godot.Vector2I.Up;
+ values.Add(PropertyName._fieldVector2I, global::Godot.Variant.From<global::Godot.Vector2I>(___fieldVector2I_default_value));
+ global::Godot.Rect2 ___fieldRect2_default_value = new(new global::Godot.Vector2(10f, 10f), new global::Godot.Vector2(10f, 10f));
+ values.Add(PropertyName._fieldRect2, global::Godot.Variant.From<global::Godot.Rect2>(___fieldRect2_default_value));
+ global::Godot.Rect2I ___fieldRect2I_default_value = new(new global::Godot.Vector2I(10, 10), new global::Godot.Vector2I(10, 10));
+ values.Add(PropertyName._fieldRect2I, global::Godot.Variant.From<global::Godot.Rect2I>(___fieldRect2I_default_value));
+ global::Godot.Transform2D ___fieldTransform2D_default_value = global::Godot.Transform2D.Identity;
+ values.Add(PropertyName._fieldTransform2D, global::Godot.Variant.From<global::Godot.Transform2D>(___fieldTransform2D_default_value));
+ global::Godot.Vector3 ___fieldVector3_default_value = new(10f, 10f, 10f);
+ values.Add(PropertyName._fieldVector3, global::Godot.Variant.From<global::Godot.Vector3>(___fieldVector3_default_value));
+ global::Godot.Vector3I ___fieldVector3I_default_value = global::Godot.Vector3I.Back;
+ values.Add(PropertyName._fieldVector3I, global::Godot.Variant.From<global::Godot.Vector3I>(___fieldVector3I_default_value));
+ global::Godot.Basis ___fieldBasis_default_value = new global::Godot.Basis(global::Godot.Quaternion.Identity);
+ values.Add(PropertyName._fieldBasis, global::Godot.Variant.From<global::Godot.Basis>(___fieldBasis_default_value));
+ global::Godot.Quaternion ___fieldQuaternion_default_value = new global::Godot.Quaternion(global::Godot.Basis.Identity);
+ values.Add(PropertyName._fieldQuaternion, global::Godot.Variant.From<global::Godot.Quaternion>(___fieldQuaternion_default_value));
+ global::Godot.Transform3D ___fieldTransform3D_default_value = global::Godot.Transform3D.Identity;
+ values.Add(PropertyName._fieldTransform3D, global::Godot.Variant.From<global::Godot.Transform3D>(___fieldTransform3D_default_value));
+ global::Godot.Vector4 ___fieldVector4_default_value = new(10f, 10f, 10f, 10f);
+ values.Add(PropertyName._fieldVector4, global::Godot.Variant.From<global::Godot.Vector4>(___fieldVector4_default_value));
+ global::Godot.Vector4I ___fieldVector4I_default_value = global::Godot.Vector4I.One;
+ values.Add(PropertyName._fieldVector4I, global::Godot.Variant.From<global::Godot.Vector4I>(___fieldVector4I_default_value));
+ global::Godot.Projection ___fieldProjection_default_value = global::Godot.Projection.Identity;
+ values.Add(PropertyName._fieldProjection, global::Godot.Variant.From<global::Godot.Projection>(___fieldProjection_default_value));
+ global::Godot.Aabb ___fieldAabb_default_value = new global::Godot.Aabb(10f, 10f, 10f, new global::Godot.Vector3(1f, 1f, 1f));
+ values.Add(PropertyName._fieldAabb, global::Godot.Variant.From<global::Godot.Aabb>(___fieldAabb_default_value));
+ global::Godot.Color ___fieldColor_default_value = global::Godot.Colors.Aquamarine;
+ values.Add(PropertyName._fieldColor, global::Godot.Variant.From<global::Godot.Color>(___fieldColor_default_value));
+ global::Godot.Plane ___fieldPlane_default_value = global::Godot.Plane.PlaneXZ;
+ values.Add(PropertyName._fieldPlane, global::Godot.Variant.From<global::Godot.Plane>(___fieldPlane_default_value));
+ global::Godot.Callable ___fieldCallable_default_value = new global::Godot.Callable(global::Godot.Engine.GetMainLoop(), "_process");
+ values.Add(PropertyName._fieldCallable, global::Godot.Variant.From<global::Godot.Callable>(___fieldCallable_default_value));
+ global::Godot.Signal ___fieldSignal_default_value = new global::Godot.Signal(global::Godot.Engine.GetMainLoop(), "property_list_changed");
+ values.Add(PropertyName._fieldSignal, global::Godot.Variant.From<global::Godot.Signal>(___fieldSignal_default_value));
+ global::ExportedFields.MyEnum ___fieldEnum_default_value = global::ExportedFields.MyEnum.C;
+ values.Add(PropertyName._fieldEnum, global::Godot.Variant.From<global::ExportedFields.MyEnum>(___fieldEnum_default_value));
+ global::ExportedFields.MyFlagsEnum ___fieldFlagsEnum_default_value = global::ExportedFields.MyFlagsEnum.C;
+ values.Add(PropertyName._fieldFlagsEnum, global::Godot.Variant.From<global::ExportedFields.MyFlagsEnum>(___fieldFlagsEnum_default_value));
+ byte[] ___fieldByteArray_default_value = { 0, 1, 2, 3, 4, 5, 6 };
+ values.Add(PropertyName._fieldByteArray, global::Godot.Variant.From<byte[]>(___fieldByteArray_default_value));
+ int[] ___fieldInt32Array_default_value = { 0, 1, 2, 3, 4, 5, 6 };
+ values.Add(PropertyName._fieldInt32Array, global::Godot.Variant.From<int[]>(___fieldInt32Array_default_value));
+ long[] ___fieldInt64Array_default_value = { 0, 1, 2, 3, 4, 5, 6 };
+ values.Add(PropertyName._fieldInt64Array, global::Godot.Variant.From<long[]>(___fieldInt64Array_default_value));
+ float[] ___fieldSingleArray_default_value = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
+ values.Add(PropertyName._fieldSingleArray, global::Godot.Variant.From<float[]>(___fieldSingleArray_default_value));
+ double[] ___fieldDoubleArray_default_value = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
+ values.Add(PropertyName._fieldDoubleArray, global::Godot.Variant.From<double[]>(___fieldDoubleArray_default_value));
+ string[] ___fieldStringArray_default_value = { "foo", "bar" };
+ values.Add(PropertyName._fieldStringArray, global::Godot.Variant.From<string[]>(___fieldStringArray_default_value));
+ string[] ___fieldStringArrayEnum_default_value = { "foo", "bar" };
+ values.Add(PropertyName._fieldStringArrayEnum, global::Godot.Variant.From<string[]>(___fieldStringArrayEnum_default_value));
+ global::Godot.Vector2[] ___fieldVector2Array_default_value = { global::Godot.Vector2.Up, global::Godot.Vector2.Down, global::Godot.Vector2.Left, global::Godot.Vector2.Right };
+ values.Add(PropertyName._fieldVector2Array, global::Godot.Variant.From<global::Godot.Vector2[]>(___fieldVector2Array_default_value));
+ global::Godot.Vector3[] ___fieldVector3Array_default_value = { global::Godot.Vector3.Up, global::Godot.Vector3.Down, global::Godot.Vector3.Left, global::Godot.Vector3.Right };
+ values.Add(PropertyName._fieldVector3Array, global::Godot.Variant.From<global::Godot.Vector3[]>(___fieldVector3Array_default_value));
+ global::Godot.Color[] ___fieldColorArray_default_value = { global::Godot.Colors.Aqua, global::Godot.Colors.Aquamarine, global::Godot.Colors.Azure, global::Godot.Colors.Beige };
+ values.Add(PropertyName._fieldColorArray, global::Godot.Variant.From<global::Godot.Color[]>(___fieldColorArray_default_value));
+ global::Godot.GodotObject[] ___fieldGodotObjectOrDerivedArray_default_value = { null };
+ values.Add(PropertyName._fieldGodotObjectOrDerivedArray, global::Godot.Variant.CreateFrom(___fieldGodotObjectOrDerivedArray_default_value));
+ global::Godot.StringName[] ___fieldStringNameArray_default_value = { "foo", "bar" };
+ values.Add(PropertyName._fieldStringNameArray, global::Godot.Variant.From<global::Godot.StringName[]>(___fieldStringNameArray_default_value));
+ global::Godot.NodePath[] ___fieldNodePathArray_default_value = { "foo", "bar" };
+ values.Add(PropertyName._fieldNodePathArray, global::Godot.Variant.From<global::Godot.NodePath[]>(___fieldNodePathArray_default_value));
+ global::Godot.Rid[] ___fieldRidArray_default_value = { default, default, default };
+ values.Add(PropertyName._fieldRidArray, global::Godot.Variant.From<global::Godot.Rid[]>(___fieldRidArray_default_value));
+ int[] ___fieldEmptyInt32Array_default_value = global::System.Array.Empty<int>();
+ values.Add(PropertyName._fieldEmptyInt32Array, global::Godot.Variant.From<int[]>(___fieldEmptyInt32Array_default_value));
+ int[] ___fieldArrayFromList_default_value = new global::System.Collections.Generic.List<int>(global::System.Array.Empty<int>()).ToArray();
+ values.Add(PropertyName._fieldArrayFromList, global::Godot.Variant.From<int[]>(___fieldArrayFromList_default_value));
+ global::Godot.Variant ___fieldVariant_default_value = "foo";
+ values.Add(PropertyName._fieldVariant, global::Godot.Variant.From<global::Godot.Variant>(___fieldVariant_default_value));
+ global::Godot.GodotObject ___fieldGodotObjectOrDerived_default_value = default;
+ values.Add(PropertyName._fieldGodotObjectOrDerived, global::Godot.Variant.From<global::Godot.GodotObject>(___fieldGodotObjectOrDerived_default_value));
+ global::Godot.Texture ___fieldGodotResourceTexture_default_value = default;
+ values.Add(PropertyName._fieldGodotResourceTexture, global::Godot.Variant.From<global::Godot.Texture>(___fieldGodotResourceTexture_default_value));
+ global::Godot.StringName ___fieldStringName_default_value = new global::Godot.StringName("foo");
+ values.Add(PropertyName._fieldStringName, global::Godot.Variant.From<global::Godot.StringName>(___fieldStringName_default_value));
+ global::Godot.NodePath ___fieldNodePath_default_value = new global::Godot.NodePath("foo");
+ values.Add(PropertyName._fieldNodePath, global::Godot.Variant.From<global::Godot.NodePath>(___fieldNodePath_default_value));
+ global::Godot.Rid ___fieldRid_default_value = default;
+ values.Add(PropertyName._fieldRid, global::Godot.Variant.From<global::Godot.Rid>(___fieldRid_default_value));
+ global::Godot.Collections.Dictionary ___fieldGodotDictionary_default_value = new() { { "foo", 10 }, { global::Godot.Vector2.Up, global::Godot.Colors.Chocolate } };
+ values.Add(PropertyName._fieldGodotDictionary, global::Godot.Variant.From<global::Godot.Collections.Dictionary>(___fieldGodotDictionary_default_value));
+ global::Godot.Collections.Array ___fieldGodotArray_default_value = new() { "foo", 10, global::Godot.Vector2.Up, global::Godot.Colors.Chocolate };
+ values.Add(PropertyName._fieldGodotArray, global::Godot.Variant.From<global::Godot.Collections.Array>(___fieldGodotArray_default_value));
+ global::Godot.Collections.Dictionary<string, bool> ___fieldGodotGenericDictionary_default_value = new() { { "foo", true }, { "bar", false } };
+ values.Add(PropertyName._fieldGodotGenericDictionary, global::Godot.Variant.CreateFrom(___fieldGodotGenericDictionary_default_value));
+ global::Godot.Collections.Array<int> ___fieldGodotGenericArray_default_value = new() { 0, 1, 2, 3, 4, 5, 6 };
+ values.Add(PropertyName._fieldGodotGenericArray, global::Godot.Variant.CreateFrom(___fieldGodotGenericArray_default_value));
+ long[] ___fieldEmptyInt64Array_default_value = global::System.Array.Empty<long>();
+ values.Add(PropertyName._fieldEmptyInt64Array, global::Godot.Variant.From<long[]>(___fieldEmptyInt64Array_default_value));
return values;
}
#endif // TOOLS
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptProperties.generated.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptProperties.generated.cs
index b5ec9b5b49..6e0e9fffbe 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptProperties.generated.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptProperties.generated.cs
@@ -9,209 +9,209 @@ partial class ExportedProperties
/// </summary>
public new class PropertyName : global::Godot.GodotObject.PropertyName {
/// <summary>
- /// Cached name for the 'NotGenerate_Complex_Lamda_Property' property.
+ /// Cached name for the 'NotGenerateComplexLamdaProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName NotGenerate_Complex_Lamda_Property = "NotGenerate_Complex_Lamda_Property";
+ public new static readonly global::Godot.StringName NotGenerateComplexLamdaProperty = "NotGenerateComplexLamdaProperty";
/// <summary>
- /// Cached name for the 'NotGenerate_Lamda_NoField_Property' property.
+ /// Cached name for the 'NotGenerateLamdaNoFieldProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName NotGenerate_Lamda_NoField_Property = "NotGenerate_Lamda_NoField_Property";
+ public new static readonly global::Godot.StringName NotGenerateLamdaNoFieldProperty = "NotGenerateLamdaNoFieldProperty";
/// <summary>
- /// Cached name for the 'NotGenerate_Complex_Return_Property' property.
+ /// Cached name for the 'NotGenerateComplexReturnProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName NotGenerate_Complex_Return_Property = "NotGenerate_Complex_Return_Property";
+ public new static readonly global::Godot.StringName NotGenerateComplexReturnProperty = "NotGenerateComplexReturnProperty";
/// <summary>
- /// Cached name for the 'NotGenerate_Returns_Property' property.
+ /// Cached name for the 'NotGenerateReturnsProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName NotGenerate_Returns_Property = "NotGenerate_Returns_Property";
+ public new static readonly global::Godot.StringName NotGenerateReturnsProperty = "NotGenerateReturnsProperty";
/// <summary>
- /// Cached name for the 'FullProperty_String' property.
+ /// Cached name for the 'FullPropertyString' property.
/// </summary>
- public new static readonly global::Godot.StringName FullProperty_String = "FullProperty_String";
+ public new static readonly global::Godot.StringName FullPropertyString = "FullPropertyString";
/// <summary>
- /// Cached name for the 'FullProperty_String_Complex' property.
+ /// Cached name for the 'FullPropertyString_Complex' property.
/// </summary>
- public new static readonly global::Godot.StringName FullProperty_String_Complex = "FullProperty_String_Complex";
+ public new static readonly global::Godot.StringName FullPropertyString_Complex = "FullPropertyString_Complex";
/// <summary>
- /// Cached name for the 'LamdaProperty_String' property.
+ /// Cached name for the 'LamdaPropertyString' property.
/// </summary>
- public new static readonly global::Godot.StringName LamdaProperty_String = "LamdaProperty_String";
+ public new static readonly global::Godot.StringName LamdaPropertyString = "LamdaPropertyString";
/// <summary>
- /// Cached name for the 'property_Boolean' property.
+ /// Cached name for the 'PropertyBoolean' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Boolean = "property_Boolean";
+ public new static readonly global::Godot.StringName PropertyBoolean = "PropertyBoolean";
/// <summary>
- /// Cached name for the 'property_Char' property.
+ /// Cached name for the 'PropertyChar' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Char = "property_Char";
+ public new static readonly global::Godot.StringName PropertyChar = "PropertyChar";
/// <summary>
- /// Cached name for the 'property_SByte' property.
+ /// Cached name for the 'PropertySByte' property.
/// </summary>
- public new static readonly global::Godot.StringName property_SByte = "property_SByte";
+ public new static readonly global::Godot.StringName PropertySByte = "PropertySByte";
/// <summary>
- /// Cached name for the 'property_Int16' property.
+ /// Cached name for the 'PropertyInt16' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Int16 = "property_Int16";
+ public new static readonly global::Godot.StringName PropertyInt16 = "PropertyInt16";
/// <summary>
- /// Cached name for the 'property_Int32' property.
+ /// Cached name for the 'PropertyInt32' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Int32 = "property_Int32";
+ public new static readonly global::Godot.StringName PropertyInt32 = "PropertyInt32";
/// <summary>
- /// Cached name for the 'property_Int64' property.
+ /// Cached name for the 'PropertyInt64' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Int64 = "property_Int64";
+ public new static readonly global::Godot.StringName PropertyInt64 = "PropertyInt64";
/// <summary>
- /// Cached name for the 'property_Byte' property.
+ /// Cached name for the 'PropertyByte' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Byte = "property_Byte";
+ public new static readonly global::Godot.StringName PropertyByte = "PropertyByte";
/// <summary>
- /// Cached name for the 'property_UInt16' property.
+ /// Cached name for the 'PropertyUInt16' property.
/// </summary>
- public new static readonly global::Godot.StringName property_UInt16 = "property_UInt16";
+ public new static readonly global::Godot.StringName PropertyUInt16 = "PropertyUInt16";
/// <summary>
- /// Cached name for the 'property_UInt32' property.
+ /// Cached name for the 'PropertyUInt32' property.
/// </summary>
- public new static readonly global::Godot.StringName property_UInt32 = "property_UInt32";
+ public new static readonly global::Godot.StringName PropertyUInt32 = "PropertyUInt32";
/// <summary>
- /// Cached name for the 'property_UInt64' property.
+ /// Cached name for the 'PropertyUInt64' property.
/// </summary>
- public new static readonly global::Godot.StringName property_UInt64 = "property_UInt64";
+ public new static readonly global::Godot.StringName PropertyUInt64 = "PropertyUInt64";
/// <summary>
- /// Cached name for the 'property_Single' property.
+ /// Cached name for the 'PropertySingle' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Single = "property_Single";
+ public new static readonly global::Godot.StringName PropertySingle = "PropertySingle";
/// <summary>
- /// Cached name for the 'property_Double' property.
+ /// Cached name for the 'PropertyDouble' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Double = "property_Double";
+ public new static readonly global::Godot.StringName PropertyDouble = "PropertyDouble";
/// <summary>
- /// Cached name for the 'property_String' property.
+ /// Cached name for the 'PropertyString' property.
/// </summary>
- public new static readonly global::Godot.StringName property_String = "property_String";
+ public new static readonly global::Godot.StringName PropertyString = "PropertyString";
/// <summary>
- /// Cached name for the 'property_Vector2' property.
+ /// Cached name for the 'PropertyVector2' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Vector2 = "property_Vector2";
+ public new static readonly global::Godot.StringName PropertyVector2 = "PropertyVector2";
/// <summary>
- /// Cached name for the 'property_Vector2I' property.
+ /// Cached name for the 'PropertyVector2I' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Vector2I = "property_Vector2I";
+ public new static readonly global::Godot.StringName PropertyVector2I = "PropertyVector2I";
/// <summary>
- /// Cached name for the 'property_Rect2' property.
+ /// Cached name for the 'PropertyRect2' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Rect2 = "property_Rect2";
+ public new static readonly global::Godot.StringName PropertyRect2 = "PropertyRect2";
/// <summary>
- /// Cached name for the 'property_Rect2I' property.
+ /// Cached name for the 'PropertyRect2I' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Rect2I = "property_Rect2I";
+ public new static readonly global::Godot.StringName PropertyRect2I = "PropertyRect2I";
/// <summary>
- /// Cached name for the 'property_Transform2D' property.
+ /// Cached name for the 'PropertyTransform2D' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Transform2D = "property_Transform2D";
+ public new static readonly global::Godot.StringName PropertyTransform2D = "PropertyTransform2D";
/// <summary>
- /// Cached name for the 'property_Vector3' property.
+ /// Cached name for the 'PropertyVector3' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Vector3 = "property_Vector3";
+ public new static readonly global::Godot.StringName PropertyVector3 = "PropertyVector3";
/// <summary>
- /// Cached name for the 'property_Vector3I' property.
+ /// Cached name for the 'PropertyVector3I' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Vector3I = "property_Vector3I";
+ public new static readonly global::Godot.StringName PropertyVector3I = "PropertyVector3I";
/// <summary>
- /// Cached name for the 'property_Basis' property.
+ /// Cached name for the 'PropertyBasis' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Basis = "property_Basis";
+ public new static readonly global::Godot.StringName PropertyBasis = "PropertyBasis";
/// <summary>
- /// Cached name for the 'property_Quaternion' property.
+ /// Cached name for the 'PropertyQuaternion' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Quaternion = "property_Quaternion";
+ public new static readonly global::Godot.StringName PropertyQuaternion = "PropertyQuaternion";
/// <summary>
- /// Cached name for the 'property_Transform3D' property.
+ /// Cached name for the 'PropertyTransform3D' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Transform3D = "property_Transform3D";
+ public new static readonly global::Godot.StringName PropertyTransform3D = "PropertyTransform3D";
/// <summary>
- /// Cached name for the 'property_Vector4' property.
+ /// Cached name for the 'PropertyVector4' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Vector4 = "property_Vector4";
+ public new static readonly global::Godot.StringName PropertyVector4 = "PropertyVector4";
/// <summary>
- /// Cached name for the 'property_Vector4I' property.
+ /// Cached name for the 'PropertyVector4I' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Vector4I = "property_Vector4I";
+ public new static readonly global::Godot.StringName PropertyVector4I = "PropertyVector4I";
/// <summary>
- /// Cached name for the 'property_Projection' property.
+ /// Cached name for the 'PropertyProjection' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Projection = "property_Projection";
+ public new static readonly global::Godot.StringName PropertyProjection = "PropertyProjection";
/// <summary>
- /// Cached name for the 'property_Aabb' property.
+ /// Cached name for the 'PropertyAabb' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Aabb = "property_Aabb";
+ public new static readonly global::Godot.StringName PropertyAabb = "PropertyAabb";
/// <summary>
- /// Cached name for the 'property_Color' property.
+ /// Cached name for the 'PropertyColor' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Color = "property_Color";
+ public new static readonly global::Godot.StringName PropertyColor = "PropertyColor";
/// <summary>
- /// Cached name for the 'property_Plane' property.
+ /// Cached name for the 'PropertyPlane' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Plane = "property_Plane";
+ public new static readonly global::Godot.StringName PropertyPlane = "PropertyPlane";
/// <summary>
- /// Cached name for the 'property_Callable' property.
+ /// Cached name for the 'PropertyCallable' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Callable = "property_Callable";
+ public new static readonly global::Godot.StringName PropertyCallable = "PropertyCallable";
/// <summary>
- /// Cached name for the 'property_Signal' property.
+ /// Cached name for the 'PropertySignal' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Signal = "property_Signal";
+ public new static readonly global::Godot.StringName PropertySignal = "PropertySignal";
/// <summary>
- /// Cached name for the 'property_Enum' property.
+ /// Cached name for the 'PropertyEnum' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Enum = "property_Enum";
+ public new static readonly global::Godot.StringName PropertyEnum = "PropertyEnum";
/// <summary>
- /// Cached name for the 'property_FlagsEnum' property.
+ /// Cached name for the 'PropertyFlagsEnum' property.
/// </summary>
- public new static readonly global::Godot.StringName property_FlagsEnum = "property_FlagsEnum";
+ public new static readonly global::Godot.StringName PropertyFlagsEnum = "PropertyFlagsEnum";
/// <summary>
- /// Cached name for the 'property_ByteArray' property.
+ /// Cached name for the 'PropertyByteArray' property.
/// </summary>
- public new static readonly global::Godot.StringName property_ByteArray = "property_ByteArray";
+ public new static readonly global::Godot.StringName PropertyByteArray = "PropertyByteArray";
/// <summary>
- /// Cached name for the 'property_Int32Array' property.
+ /// Cached name for the 'PropertyInt32Array' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Int32Array = "property_Int32Array";
+ public new static readonly global::Godot.StringName PropertyInt32Array = "PropertyInt32Array";
/// <summary>
- /// Cached name for the 'property_Int64Array' property.
+ /// Cached name for the 'PropertyInt64Array' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Int64Array = "property_Int64Array";
+ public new static readonly global::Godot.StringName PropertyInt64Array = "PropertyInt64Array";
/// <summary>
- /// Cached name for the 'property_SingleArray' property.
+ /// Cached name for the 'PropertySingleArray' property.
/// </summary>
- public new static readonly global::Godot.StringName property_SingleArray = "property_SingleArray";
+ public new static readonly global::Godot.StringName PropertySingleArray = "PropertySingleArray";
/// <summary>
- /// Cached name for the 'property_DoubleArray' property.
+ /// Cached name for the 'PropertyDoubleArray' property.
/// </summary>
- public new static readonly global::Godot.StringName property_DoubleArray = "property_DoubleArray";
+ public new static readonly global::Godot.StringName PropertyDoubleArray = "PropertyDoubleArray";
/// <summary>
- /// Cached name for the 'property_StringArray' property.
+ /// Cached name for the 'PropertyStringArray' property.
/// </summary>
- public new static readonly global::Godot.StringName property_StringArray = "property_StringArray";
+ public new static readonly global::Godot.StringName PropertyStringArray = "PropertyStringArray";
/// <summary>
- /// Cached name for the 'property_StringArrayEnum' property.
+ /// Cached name for the 'PropertyStringArrayEnum' property.
/// </summary>
- public new static readonly global::Godot.StringName property_StringArrayEnum = "property_StringArrayEnum";
+ public new static readonly global::Godot.StringName PropertyStringArrayEnum = "PropertyStringArrayEnum";
/// <summary>
- /// Cached name for the 'property_Vector2Array' property.
+ /// Cached name for the 'PropertyVector2Array' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Vector2Array = "property_Vector2Array";
+ public new static readonly global::Godot.StringName PropertyVector2Array = "PropertyVector2Array";
/// <summary>
- /// Cached name for the 'property_Vector3Array' property.
+ /// Cached name for the 'PropertyVector3Array' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Vector3Array = "property_Vector3Array";
+ public new static readonly global::Godot.StringName PropertyVector3Array = "PropertyVector3Array";
/// <summary>
- /// Cached name for the 'property_ColorArray' property.
+ /// Cached name for the 'PropertyColorArray' property.
/// </summary>
- public new static readonly global::Godot.StringName property_ColorArray = "property_ColorArray";
+ public new static readonly global::Godot.StringName PropertyColorArray = "PropertyColorArray";
/// <summary>
- /// Cached name for the 'property_GodotObjectOrDerivedArray' property.
+ /// Cached name for the 'PropertyGodotObjectOrDerivedArray' property.
/// </summary>
- public new static readonly global::Godot.StringName property_GodotObjectOrDerivedArray = "property_GodotObjectOrDerivedArray";
+ public new static readonly global::Godot.StringName PropertyGodotObjectOrDerivedArray = "PropertyGodotObjectOrDerivedArray";
/// <summary>
/// Cached name for the 'field_StringNameArray' property.
/// </summary>
@@ -225,272 +225,272 @@ partial class ExportedProperties
/// </summary>
public new static readonly global::Godot.StringName field_RidArray = "field_RidArray";
/// <summary>
- /// Cached name for the 'property_Variant' property.
+ /// Cached name for the 'PropertyVariant' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Variant = "property_Variant";
+ public new static readonly global::Godot.StringName PropertyVariant = "PropertyVariant";
/// <summary>
- /// Cached name for the 'property_GodotObjectOrDerived' property.
+ /// Cached name for the 'PropertyGodotObjectOrDerived' property.
/// </summary>
- public new static readonly global::Godot.StringName property_GodotObjectOrDerived = "property_GodotObjectOrDerived";
+ public new static readonly global::Godot.StringName PropertyGodotObjectOrDerived = "PropertyGodotObjectOrDerived";
/// <summary>
- /// Cached name for the 'property_GodotResourceTexture' property.
+ /// Cached name for the 'PropertyGodotResourceTexture' property.
/// </summary>
- public new static readonly global::Godot.StringName property_GodotResourceTexture = "property_GodotResourceTexture";
+ public new static readonly global::Godot.StringName PropertyGodotResourceTexture = "PropertyGodotResourceTexture";
/// <summary>
- /// Cached name for the 'property_StringName' property.
+ /// Cached name for the 'PropertyStringName' property.
/// </summary>
- public new static readonly global::Godot.StringName property_StringName = "property_StringName";
+ public new static readonly global::Godot.StringName PropertyStringName = "PropertyStringName";
/// <summary>
- /// Cached name for the 'property_NodePath' property.
+ /// Cached name for the 'PropertyNodePath' property.
/// </summary>
- public new static readonly global::Godot.StringName property_NodePath = "property_NodePath";
+ public new static readonly global::Godot.StringName PropertyNodePath = "PropertyNodePath";
/// <summary>
- /// Cached name for the 'property_Rid' property.
+ /// Cached name for the 'PropertyRid' property.
/// </summary>
- public new static readonly global::Godot.StringName property_Rid = "property_Rid";
+ public new static readonly global::Godot.StringName PropertyRid = "PropertyRid";
/// <summary>
- /// Cached name for the 'property_GodotDictionary' property.
+ /// Cached name for the 'PropertyGodotDictionary' property.
/// </summary>
- public new static readonly global::Godot.StringName property_GodotDictionary = "property_GodotDictionary";
+ public new static readonly global::Godot.StringName PropertyGodotDictionary = "PropertyGodotDictionary";
/// <summary>
- /// Cached name for the 'property_GodotArray' property.
+ /// Cached name for the 'PropertyGodotArray' property.
/// </summary>
- public new static readonly global::Godot.StringName property_GodotArray = "property_GodotArray";
+ public new static readonly global::Godot.StringName PropertyGodotArray = "PropertyGodotArray";
/// <summary>
- /// Cached name for the 'property_GodotGenericDictionary' property.
+ /// Cached name for the 'PropertyGodotGenericDictionary' property.
/// </summary>
- public new static readonly global::Godot.StringName property_GodotGenericDictionary = "property_GodotGenericDictionary";
+ public new static readonly global::Godot.StringName PropertyGodotGenericDictionary = "PropertyGodotGenericDictionary";
/// <summary>
- /// Cached name for the 'property_GodotGenericArray' property.
+ /// Cached name for the 'PropertyGodotGenericArray' property.
/// </summary>
- public new static readonly global::Godot.StringName property_GodotGenericArray = "property_GodotGenericArray";
+ public new static readonly global::Godot.StringName PropertyGodotGenericArray = "PropertyGodotGenericArray";
/// <summary>
- /// Cached name for the '_notGenerate_Property_String' field.
+ /// Cached name for the '_notGeneratePropertyString' field.
/// </summary>
- public new static readonly global::Godot.StringName _notGenerate_Property_String = "_notGenerate_Property_String";
+ public new static readonly global::Godot.StringName _notGeneratePropertyString = "_notGeneratePropertyString";
/// <summary>
- /// Cached name for the '_notGenerate_Property_Int' field.
+ /// Cached name for the '_notGeneratePropertyInt' field.
/// </summary>
- public new static readonly global::Godot.StringName _notGenerate_Property_Int = "_notGenerate_Property_Int";
+ public new static readonly global::Godot.StringName _notGeneratePropertyInt = "_notGeneratePropertyInt";
/// <summary>
- /// Cached name for the '_fullProperty_String' field.
+ /// Cached name for the '_fullPropertyString' field.
/// </summary>
- public new static readonly global::Godot.StringName _fullProperty_String = "_fullProperty_String";
+ public new static readonly global::Godot.StringName _fullPropertyString = "_fullPropertyString";
/// <summary>
- /// Cached name for the '_fullProperty_String_Complex' field.
+ /// Cached name for the '_fullPropertyStringComplex' field.
/// </summary>
- public new static readonly global::Godot.StringName _fullProperty_String_Complex = "_fullProperty_String_Complex";
+ public new static readonly global::Godot.StringName _fullPropertyStringComplex = "_fullPropertyStringComplex";
/// <summary>
- /// Cached name for the '_lamdaProperty_String' field.
+ /// Cached name for the '_lamdaPropertyString' field.
/// </summary>
- public new static readonly global::Godot.StringName _lamdaProperty_String = "_lamdaProperty_String";
+ public new static readonly global::Godot.StringName _lamdaPropertyString = "_lamdaPropertyString";
}
/// <inheritdoc/>
[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.NotGenerate_Complex_Lamda_Property) {
- this.NotGenerate_Complex_Lamda_Property = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ if (name == PropertyName.NotGenerateComplexLamdaProperty) {
+ this.NotGenerateComplexLamdaProperty = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.NotGenerate_Lamda_NoField_Property) {
- this.NotGenerate_Lamda_NoField_Property = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName.NotGenerateLamdaNoFieldProperty) {
+ this.NotGenerateLamdaNoFieldProperty = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.NotGenerate_Complex_Return_Property) {
- this.NotGenerate_Complex_Return_Property = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName.NotGenerateComplexReturnProperty) {
+ this.NotGenerateComplexReturnProperty = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.NotGenerate_Returns_Property) {
- this.NotGenerate_Returns_Property = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName.NotGenerateReturnsProperty) {
+ this.NotGenerateReturnsProperty = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.FullProperty_String) {
- this.FullProperty_String = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName.FullPropertyString) {
+ this.FullPropertyString = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.FullProperty_String_Complex) {
- this.FullProperty_String_Complex = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName.FullPropertyString_Complex) {
+ this.FullPropertyString_Complex = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.LamdaProperty_String) {
- this.LamdaProperty_String = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName.LamdaPropertyString) {
+ this.LamdaPropertyString = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.property_Boolean) {
- this.property_Boolean = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
+ else if (name == PropertyName.PropertyBoolean) {
+ this.PropertyBoolean = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
return true;
}
- else if (name == PropertyName.property_Char) {
- this.property_Char = global::Godot.NativeInterop.VariantUtils.ConvertTo<char>(value);
+ else if (name == PropertyName.PropertyChar) {
+ this.PropertyChar = global::Godot.NativeInterop.VariantUtils.ConvertTo<char>(value);
return true;
}
- else if (name == PropertyName.property_SByte) {
- this.property_SByte = global::Godot.NativeInterop.VariantUtils.ConvertTo<sbyte>(value);
+ else if (name == PropertyName.PropertySByte) {
+ this.PropertySByte = global::Godot.NativeInterop.VariantUtils.ConvertTo<sbyte>(value);
return true;
}
- else if (name == PropertyName.property_Int16) {
- this.property_Int16 = global::Godot.NativeInterop.VariantUtils.ConvertTo<short>(value);
+ else if (name == PropertyName.PropertyInt16) {
+ this.PropertyInt16 = global::Godot.NativeInterop.VariantUtils.ConvertTo<short>(value);
return true;
}
- else if (name == PropertyName.property_Int32) {
- this.property_Int32 = global::Godot.NativeInterop.VariantUtils.ConvertTo<int>(value);
+ else if (name == PropertyName.PropertyInt32) {
+ this.PropertyInt32 = global::Godot.NativeInterop.VariantUtils.ConvertTo<int>(value);
return true;
}
- else if (name == PropertyName.property_Int64) {
- this.property_Int64 = global::Godot.NativeInterop.VariantUtils.ConvertTo<long>(value);
+ else if (name == PropertyName.PropertyInt64) {
+ this.PropertyInt64 = global::Godot.NativeInterop.VariantUtils.ConvertTo<long>(value);
return true;
}
- else if (name == PropertyName.property_Byte) {
- this.property_Byte = global::Godot.NativeInterop.VariantUtils.ConvertTo<byte>(value);
+ else if (name == PropertyName.PropertyByte) {
+ this.PropertyByte = global::Godot.NativeInterop.VariantUtils.ConvertTo<byte>(value);
return true;
}
- else if (name == PropertyName.property_UInt16) {
- this.property_UInt16 = global::Godot.NativeInterop.VariantUtils.ConvertTo<ushort>(value);
+ else if (name == PropertyName.PropertyUInt16) {
+ this.PropertyUInt16 = global::Godot.NativeInterop.VariantUtils.ConvertTo<ushort>(value);
return true;
}
- else if (name == PropertyName.property_UInt32) {
- this.property_UInt32 = global::Godot.NativeInterop.VariantUtils.ConvertTo<uint>(value);
+ else if (name == PropertyName.PropertyUInt32) {
+ this.PropertyUInt32 = global::Godot.NativeInterop.VariantUtils.ConvertTo<uint>(value);
return true;
}
- else if (name == PropertyName.property_UInt64) {
- this.property_UInt64 = global::Godot.NativeInterop.VariantUtils.ConvertTo<ulong>(value);
+ else if (name == PropertyName.PropertyUInt64) {
+ this.PropertyUInt64 = global::Godot.NativeInterop.VariantUtils.ConvertTo<ulong>(value);
return true;
}
- else if (name == PropertyName.property_Single) {
- this.property_Single = global::Godot.NativeInterop.VariantUtils.ConvertTo<float>(value);
+ else if (name == PropertyName.PropertySingle) {
+ this.PropertySingle = global::Godot.NativeInterop.VariantUtils.ConvertTo<float>(value);
return true;
}
- else if (name == PropertyName.property_Double) {
- this.property_Double = global::Godot.NativeInterop.VariantUtils.ConvertTo<double>(value);
+ else if (name == PropertyName.PropertyDouble) {
+ this.PropertyDouble = global::Godot.NativeInterop.VariantUtils.ConvertTo<double>(value);
return true;
}
- else if (name == PropertyName.property_String) {
- this.property_String = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName.PropertyString) {
+ this.PropertyString = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName.property_Vector2) {
- this.property_Vector2 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2>(value);
+ else if (name == PropertyName.PropertyVector2) {
+ this.PropertyVector2 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2>(value);
return true;
}
- else if (name == PropertyName.property_Vector2I) {
- this.property_Vector2I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2I>(value);
+ else if (name == PropertyName.PropertyVector2I) {
+ this.PropertyVector2I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2I>(value);
return true;
}
- else if (name == PropertyName.property_Rect2) {
- this.property_Rect2 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rect2>(value);
+ else if (name == PropertyName.PropertyRect2) {
+ this.PropertyRect2 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rect2>(value);
return true;
}
- else if (name == PropertyName.property_Rect2I) {
- this.property_Rect2I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rect2I>(value);
+ else if (name == PropertyName.PropertyRect2I) {
+ this.PropertyRect2I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rect2I>(value);
return true;
}
- else if (name == PropertyName.property_Transform2D) {
- this.property_Transform2D = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Transform2D>(value);
+ else if (name == PropertyName.PropertyTransform2D) {
+ this.PropertyTransform2D = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Transform2D>(value);
return true;
}
- else if (name == PropertyName.property_Vector3) {
- this.property_Vector3 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3>(value);
+ else if (name == PropertyName.PropertyVector3) {
+ this.PropertyVector3 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3>(value);
return true;
}
- else if (name == PropertyName.property_Vector3I) {
- this.property_Vector3I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3I>(value);
+ else if (name == PropertyName.PropertyVector3I) {
+ this.PropertyVector3I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3I>(value);
return true;
}
- else if (name == PropertyName.property_Basis) {
- this.property_Basis = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Basis>(value);
+ else if (name == PropertyName.PropertyBasis) {
+ this.PropertyBasis = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Basis>(value);
return true;
}
- else if (name == PropertyName.property_Quaternion) {
- this.property_Quaternion = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Quaternion>(value);
+ else if (name == PropertyName.PropertyQuaternion) {
+ this.PropertyQuaternion = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Quaternion>(value);
return true;
}
- else if (name == PropertyName.property_Transform3D) {
- this.property_Transform3D = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Transform3D>(value);
+ else if (name == PropertyName.PropertyTransform3D) {
+ this.PropertyTransform3D = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Transform3D>(value);
return true;
}
- else if (name == PropertyName.property_Vector4) {
- this.property_Vector4 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector4>(value);
+ else if (name == PropertyName.PropertyVector4) {
+ this.PropertyVector4 = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector4>(value);
return true;
}
- else if (name == PropertyName.property_Vector4I) {
- this.property_Vector4I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector4I>(value);
+ else if (name == PropertyName.PropertyVector4I) {
+ this.PropertyVector4I = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector4I>(value);
return true;
}
- else if (name == PropertyName.property_Projection) {
- this.property_Projection = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Projection>(value);
+ else if (name == PropertyName.PropertyProjection) {
+ this.PropertyProjection = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Projection>(value);
return true;
}
- else if (name == PropertyName.property_Aabb) {
- this.property_Aabb = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Aabb>(value);
+ else if (name == PropertyName.PropertyAabb) {
+ this.PropertyAabb = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Aabb>(value);
return true;
}
- else if (name == PropertyName.property_Color) {
- this.property_Color = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Color>(value);
+ else if (name == PropertyName.PropertyColor) {
+ this.PropertyColor = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Color>(value);
return true;
}
- else if (name == PropertyName.property_Plane) {
- this.property_Plane = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Plane>(value);
+ else if (name == PropertyName.PropertyPlane) {
+ this.PropertyPlane = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Plane>(value);
return true;
}
- else if (name == PropertyName.property_Callable) {
- this.property_Callable = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Callable>(value);
+ else if (name == PropertyName.PropertyCallable) {
+ this.PropertyCallable = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Callable>(value);
return true;
}
- else if (name == PropertyName.property_Signal) {
- this.property_Signal = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Signal>(value);
+ else if (name == PropertyName.PropertySignal) {
+ this.PropertySignal = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Signal>(value);
return true;
}
- else if (name == PropertyName.property_Enum) {
- this.property_Enum = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::ExportedProperties.MyEnum>(value);
+ else if (name == PropertyName.PropertyEnum) {
+ this.PropertyEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::ExportedProperties.MyEnum>(value);
return true;
}
- else if (name == PropertyName.property_FlagsEnum) {
- this.property_FlagsEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::ExportedProperties.MyFlagsEnum>(value);
+ else if (name == PropertyName.PropertyFlagsEnum) {
+ this.PropertyFlagsEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::ExportedProperties.MyFlagsEnum>(value);
return true;
}
- else if (name == PropertyName.property_ByteArray) {
- this.property_ByteArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<byte[]>(value);
+ else if (name == PropertyName.PropertyByteArray) {
+ this.PropertyByteArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<byte[]>(value);
return true;
}
- else if (name == PropertyName.property_Int32Array) {
- this.property_Int32Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<int[]>(value);
+ else if (name == PropertyName.PropertyInt32Array) {
+ this.PropertyInt32Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<int[]>(value);
return true;
}
- else if (name == PropertyName.property_Int64Array) {
- this.property_Int64Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<long[]>(value);
+ else if (name == PropertyName.PropertyInt64Array) {
+ this.PropertyInt64Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<long[]>(value);
return true;
}
- else if (name == PropertyName.property_SingleArray) {
- this.property_SingleArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<float[]>(value);
+ else if (name == PropertyName.PropertySingleArray) {
+ this.PropertySingleArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<float[]>(value);
return true;
}
- else if (name == PropertyName.property_DoubleArray) {
- this.property_DoubleArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<double[]>(value);
+ else if (name == PropertyName.PropertyDoubleArray) {
+ this.PropertyDoubleArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<double[]>(value);
return true;
}
- else if (name == PropertyName.property_StringArray) {
- this.property_StringArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<string[]>(value);
+ else if (name == PropertyName.PropertyStringArray) {
+ this.PropertyStringArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<string[]>(value);
return true;
}
- else if (name == PropertyName.property_StringArrayEnum) {
- this.property_StringArrayEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<string[]>(value);
+ else if (name == PropertyName.PropertyStringArrayEnum) {
+ this.PropertyStringArrayEnum = global::Godot.NativeInterop.VariantUtils.ConvertTo<string[]>(value);
return true;
}
- else if (name == PropertyName.property_Vector2Array) {
- this.property_Vector2Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2[]>(value);
+ else if (name == PropertyName.PropertyVector2Array) {
+ this.PropertyVector2Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector2[]>(value);
return true;
}
- else if (name == PropertyName.property_Vector3Array) {
- this.property_Vector3Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3[]>(value);
+ else if (name == PropertyName.PropertyVector3Array) {
+ this.PropertyVector3Array = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Vector3[]>(value);
return true;
}
- else if (name == PropertyName.property_ColorArray) {
- this.property_ColorArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Color[]>(value);
+ else if (name == PropertyName.PropertyColorArray) {
+ this.PropertyColorArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Color[]>(value);
return true;
}
- else if (name == PropertyName.property_GodotObjectOrDerivedArray) {
- this.property_GodotObjectOrDerivedArray = global::Godot.NativeInterop.VariantUtils.ConvertToSystemArrayOfGodotObject<global::Godot.GodotObject>(value);
+ else if (name == PropertyName.PropertyGodotObjectOrDerivedArray) {
+ this.PropertyGodotObjectOrDerivedArray = global::Godot.NativeInterop.VariantUtils.ConvertToSystemArrayOfGodotObject<global::Godot.GodotObject>(value);
return true;
}
else if (name == PropertyName.field_StringNameArray) {
@@ -505,64 +505,64 @@ partial class ExportedProperties
this.field_RidArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rid[]>(value);
return true;
}
- else if (name == PropertyName.property_Variant) {
- this.property_Variant = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Variant>(value);
+ else if (name == PropertyName.PropertyVariant) {
+ this.PropertyVariant = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Variant>(value);
return true;
}
- else if (name == PropertyName.property_GodotObjectOrDerived) {
- this.property_GodotObjectOrDerived = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.GodotObject>(value);
+ else if (name == PropertyName.PropertyGodotObjectOrDerived) {
+ this.PropertyGodotObjectOrDerived = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.GodotObject>(value);
return true;
}
- else if (name == PropertyName.property_GodotResourceTexture) {
- this.property_GodotResourceTexture = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Texture>(value);
+ else if (name == PropertyName.PropertyGodotResourceTexture) {
+ this.PropertyGodotResourceTexture = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Texture>(value);
return true;
}
- else if (name == PropertyName.property_StringName) {
- this.property_StringName = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.StringName>(value);
+ else if (name == PropertyName.PropertyStringName) {
+ this.PropertyStringName = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.StringName>(value);
return true;
}
- else if (name == PropertyName.property_NodePath) {
- this.property_NodePath = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.NodePath>(value);
+ else if (name == PropertyName.PropertyNodePath) {
+ this.PropertyNodePath = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.NodePath>(value);
return true;
}
- else if (name == PropertyName.property_Rid) {
- this.property_Rid = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rid>(value);
+ else if (name == PropertyName.PropertyRid) {
+ this.PropertyRid = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Rid>(value);
return true;
}
- else if (name == PropertyName.property_GodotDictionary) {
- this.property_GodotDictionary = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Collections.Dictionary>(value);
+ else if (name == PropertyName.PropertyGodotDictionary) {
+ this.PropertyGodotDictionary = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Collections.Dictionary>(value);
return true;
}
- else if (name == PropertyName.property_GodotArray) {
- this.property_GodotArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Collections.Array>(value);
+ else if (name == PropertyName.PropertyGodotArray) {
+ this.PropertyGodotArray = global::Godot.NativeInterop.VariantUtils.ConvertTo<global::Godot.Collections.Array>(value);
return true;
}
- else if (name == PropertyName.property_GodotGenericDictionary) {
- this.property_GodotGenericDictionary = global::Godot.NativeInterop.VariantUtils.ConvertToDictionary<string, bool>(value);
+ else if (name == PropertyName.PropertyGodotGenericDictionary) {
+ this.PropertyGodotGenericDictionary = global::Godot.NativeInterop.VariantUtils.ConvertToDictionary<string, bool>(value);
return true;
}
- else if (name == PropertyName.property_GodotGenericArray) {
- this.property_GodotGenericArray = global::Godot.NativeInterop.VariantUtils.ConvertToArray<int>(value);
+ else if (name == PropertyName.PropertyGodotGenericArray) {
+ this.PropertyGodotGenericArray = global::Godot.NativeInterop.VariantUtils.ConvertToArray<int>(value);
return true;
}
- else if (name == PropertyName._notGenerate_Property_String) {
- this._notGenerate_Property_String = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName._notGeneratePropertyString) {
+ this._notGeneratePropertyString = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName._notGenerate_Property_Int) {
- this._notGenerate_Property_Int = global::Godot.NativeInterop.VariantUtils.ConvertTo<int>(value);
+ else if (name == PropertyName._notGeneratePropertyInt) {
+ this._notGeneratePropertyInt = global::Godot.NativeInterop.VariantUtils.ConvertTo<int>(value);
return true;
}
- else if (name == PropertyName._fullProperty_String) {
- this._fullProperty_String = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName._fullPropertyString) {
+ this._fullPropertyString = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName._fullProperty_String_Complex) {
- this._fullProperty_String_Complex = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName._fullPropertyStringComplex) {
+ this._fullPropertyStringComplex = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
- else if (name == PropertyName._lamdaProperty_String) {
- this._lamdaProperty_String = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
+ else if (name == PropertyName._lamdaPropertyString) {
+ this._lamdaPropertyString = global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(value);
return true;
}
return base.SetGodotClassPropertyValue(name, value);
@@ -571,208 +571,208 @@ partial class ExportedProperties
[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.NotGenerate_Complex_Lamda_Property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.NotGenerate_Complex_Lamda_Property);
+ if (name == PropertyName.NotGenerateComplexLamdaProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.NotGenerateComplexLamdaProperty);
return true;
}
- else if (name == PropertyName.NotGenerate_Lamda_NoField_Property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.NotGenerate_Lamda_NoField_Property);
+ else if (name == PropertyName.NotGenerateLamdaNoFieldProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.NotGenerateLamdaNoFieldProperty);
return true;
}
- else if (name == PropertyName.NotGenerate_Complex_Return_Property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.NotGenerate_Complex_Return_Property);
+ else if (name == PropertyName.NotGenerateComplexReturnProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.NotGenerateComplexReturnProperty);
return true;
}
- else if (name == PropertyName.NotGenerate_Returns_Property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.NotGenerate_Returns_Property);
+ else if (name == PropertyName.NotGenerateReturnsProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.NotGenerateReturnsProperty);
return true;
}
- else if (name == PropertyName.FullProperty_String) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.FullProperty_String);
+ else if (name == PropertyName.FullPropertyString) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.FullPropertyString);
return true;
}
- else if (name == PropertyName.FullProperty_String_Complex) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.FullProperty_String_Complex);
+ else if (name == PropertyName.FullPropertyString_Complex) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.FullPropertyString_Complex);
return true;
}
- else if (name == PropertyName.LamdaProperty_String) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.LamdaProperty_String);
+ else if (name == PropertyName.LamdaPropertyString) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.LamdaPropertyString);
return true;
}
- else if (name == PropertyName.property_Boolean) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this.property_Boolean);
+ else if (name == PropertyName.PropertyBoolean) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this.PropertyBoolean);
return true;
}
- else if (name == PropertyName.property_Char) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<char>(this.property_Char);
+ else if (name == PropertyName.PropertyChar) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<char>(this.PropertyChar);
return true;
}
- else if (name == PropertyName.property_SByte) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<sbyte>(this.property_SByte);
+ else if (name == PropertyName.PropertySByte) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<sbyte>(this.PropertySByte);
return true;
}
- else if (name == PropertyName.property_Int16) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<short>(this.property_Int16);
+ else if (name == PropertyName.PropertyInt16) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<short>(this.PropertyInt16);
return true;
}
- else if (name == PropertyName.property_Int32) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int>(this.property_Int32);
+ else if (name == PropertyName.PropertyInt32) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int>(this.PropertyInt32);
return true;
}
- else if (name == PropertyName.property_Int64) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long>(this.property_Int64);
+ else if (name == PropertyName.PropertyInt64) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long>(this.PropertyInt64);
return true;
}
- else if (name == PropertyName.property_Byte) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<byte>(this.property_Byte);
+ else if (name == PropertyName.PropertyByte) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<byte>(this.PropertyByte);
return true;
}
- else if (name == PropertyName.property_UInt16) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<ushort>(this.property_UInt16);
+ else if (name == PropertyName.PropertyUInt16) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<ushort>(this.PropertyUInt16);
return true;
}
- else if (name == PropertyName.property_UInt32) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<uint>(this.property_UInt32);
+ else if (name == PropertyName.PropertyUInt32) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<uint>(this.PropertyUInt32);
return true;
}
- else if (name == PropertyName.property_UInt64) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<ulong>(this.property_UInt64);
+ else if (name == PropertyName.PropertyUInt64) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<ulong>(this.PropertyUInt64);
return true;
}
- else if (name == PropertyName.property_Single) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<float>(this.property_Single);
+ else if (name == PropertyName.PropertySingle) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<float>(this.PropertySingle);
return true;
}
- else if (name == PropertyName.property_Double) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<double>(this.property_Double);
+ else if (name == PropertyName.PropertyDouble) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<double>(this.PropertyDouble);
return true;
}
- else if (name == PropertyName.property_String) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.property_String);
+ else if (name == PropertyName.PropertyString) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.PropertyString);
return true;
}
- else if (name == PropertyName.property_Vector2) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2>(this.property_Vector2);
+ else if (name == PropertyName.PropertyVector2) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2>(this.PropertyVector2);
return true;
}
- else if (name == PropertyName.property_Vector2I) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2I>(this.property_Vector2I);
+ else if (name == PropertyName.PropertyVector2I) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2I>(this.PropertyVector2I);
return true;
}
- else if (name == PropertyName.property_Rect2) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rect2>(this.property_Rect2);
+ else if (name == PropertyName.PropertyRect2) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rect2>(this.PropertyRect2);
return true;
}
- else if (name == PropertyName.property_Rect2I) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rect2I>(this.property_Rect2I);
+ else if (name == PropertyName.PropertyRect2I) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rect2I>(this.PropertyRect2I);
return true;
}
- else if (name == PropertyName.property_Transform2D) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Transform2D>(this.property_Transform2D);
+ else if (name == PropertyName.PropertyTransform2D) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Transform2D>(this.PropertyTransform2D);
return true;
}
- else if (name == PropertyName.property_Vector3) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3>(this.property_Vector3);
+ else if (name == PropertyName.PropertyVector3) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3>(this.PropertyVector3);
return true;
}
- else if (name == PropertyName.property_Vector3I) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3I>(this.property_Vector3I);
+ else if (name == PropertyName.PropertyVector3I) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3I>(this.PropertyVector3I);
return true;
}
- else if (name == PropertyName.property_Basis) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Basis>(this.property_Basis);
+ else if (name == PropertyName.PropertyBasis) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Basis>(this.PropertyBasis);
return true;
}
- else if (name == PropertyName.property_Quaternion) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Quaternion>(this.property_Quaternion);
+ else if (name == PropertyName.PropertyQuaternion) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Quaternion>(this.PropertyQuaternion);
return true;
}
- else if (name == PropertyName.property_Transform3D) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Transform3D>(this.property_Transform3D);
+ else if (name == PropertyName.PropertyTransform3D) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Transform3D>(this.PropertyTransform3D);
return true;
}
- else if (name == PropertyName.property_Vector4) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector4>(this.property_Vector4);
+ else if (name == PropertyName.PropertyVector4) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector4>(this.PropertyVector4);
return true;
}
- else if (name == PropertyName.property_Vector4I) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector4I>(this.property_Vector4I);
+ else if (name == PropertyName.PropertyVector4I) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector4I>(this.PropertyVector4I);
return true;
}
- else if (name == PropertyName.property_Projection) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Projection>(this.property_Projection);
+ else if (name == PropertyName.PropertyProjection) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Projection>(this.PropertyProjection);
return true;
}
- else if (name == PropertyName.property_Aabb) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Aabb>(this.property_Aabb);
+ else if (name == PropertyName.PropertyAabb) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Aabb>(this.PropertyAabb);
return true;
}
- else if (name == PropertyName.property_Color) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Color>(this.property_Color);
+ else if (name == PropertyName.PropertyColor) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Color>(this.PropertyColor);
return true;
}
- else if (name == PropertyName.property_Plane) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Plane>(this.property_Plane);
+ else if (name == PropertyName.PropertyPlane) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Plane>(this.PropertyPlane);
return true;
}
- else if (name == PropertyName.property_Callable) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.property_Callable);
+ else if (name == PropertyName.PropertyCallable) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Callable>(this.PropertyCallable);
return true;
}
- else if (name == PropertyName.property_Signal) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Signal>(this.property_Signal);
+ else if (name == PropertyName.PropertySignal) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Signal>(this.PropertySignal);
return true;
}
- else if (name == PropertyName.property_Enum) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::ExportedProperties.MyEnum>(this.property_Enum);
+ else if (name == PropertyName.PropertyEnum) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::ExportedProperties.MyEnum>(this.PropertyEnum);
return true;
}
- else if (name == PropertyName.property_FlagsEnum) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::ExportedProperties.MyFlagsEnum>(this.property_FlagsEnum);
+ else if (name == PropertyName.PropertyFlagsEnum) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::ExportedProperties.MyFlagsEnum>(this.PropertyFlagsEnum);
return true;
}
- else if (name == PropertyName.property_ByteArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<byte[]>(this.property_ByteArray);
+ else if (name == PropertyName.PropertyByteArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<byte[]>(this.PropertyByteArray);
return true;
}
- else if (name == PropertyName.property_Int32Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int[]>(this.property_Int32Array);
+ else if (name == PropertyName.PropertyInt32Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int[]>(this.PropertyInt32Array);
return true;
}
- else if (name == PropertyName.property_Int64Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long[]>(this.property_Int64Array);
+ else if (name == PropertyName.PropertyInt64Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<long[]>(this.PropertyInt64Array);
return true;
}
- else if (name == PropertyName.property_SingleArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<float[]>(this.property_SingleArray);
+ else if (name == PropertyName.PropertySingleArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<float[]>(this.PropertySingleArray);
return true;
}
- else if (name == PropertyName.property_DoubleArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<double[]>(this.property_DoubleArray);
+ else if (name == PropertyName.PropertyDoubleArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<double[]>(this.PropertyDoubleArray);
return true;
}
- else if (name == PropertyName.property_StringArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string[]>(this.property_StringArray);
+ else if (name == PropertyName.PropertyStringArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string[]>(this.PropertyStringArray);
return true;
}
- else if (name == PropertyName.property_StringArrayEnum) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string[]>(this.property_StringArrayEnum);
+ else if (name == PropertyName.PropertyStringArrayEnum) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string[]>(this.PropertyStringArrayEnum);
return true;
}
- else if (name == PropertyName.property_Vector2Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2[]>(this.property_Vector2Array);
+ else if (name == PropertyName.PropertyVector2Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector2[]>(this.PropertyVector2Array);
return true;
}
- else if (name == PropertyName.property_Vector3Array) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3[]>(this.property_Vector3Array);
+ else if (name == PropertyName.PropertyVector3Array) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Vector3[]>(this.PropertyVector3Array);
return true;
}
- else if (name == PropertyName.property_ColorArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Color[]>(this.property_ColorArray);
+ else if (name == PropertyName.PropertyColorArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Color[]>(this.PropertyColorArray);
return true;
}
- else if (name == PropertyName.property_GodotObjectOrDerivedArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFromSystemArrayOfGodotObject(this.property_GodotObjectOrDerivedArray);
+ else if (name == PropertyName.PropertyGodotObjectOrDerivedArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFromSystemArrayOfGodotObject(this.PropertyGodotObjectOrDerivedArray);
return true;
}
else if (name == PropertyName.field_StringNameArray) {
@@ -787,64 +787,64 @@ partial class ExportedProperties
value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rid[]>(this.field_RidArray);
return true;
}
- else if (name == PropertyName.property_Variant) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Variant>(this.property_Variant);
+ else if (name == PropertyName.PropertyVariant) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Variant>(this.PropertyVariant);
return true;
}
- else if (name == PropertyName.property_GodotObjectOrDerived) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.GodotObject>(this.property_GodotObjectOrDerived);
+ else if (name == PropertyName.PropertyGodotObjectOrDerived) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.GodotObject>(this.PropertyGodotObjectOrDerived);
return true;
}
- else if (name == PropertyName.property_GodotResourceTexture) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Texture>(this.property_GodotResourceTexture);
+ else if (name == PropertyName.PropertyGodotResourceTexture) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Texture>(this.PropertyGodotResourceTexture);
return true;
}
- else if (name == PropertyName.property_StringName) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.StringName>(this.property_StringName);
+ else if (name == PropertyName.PropertyStringName) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.StringName>(this.PropertyStringName);
return true;
}
- else if (name == PropertyName.property_NodePath) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.NodePath>(this.property_NodePath);
+ else if (name == PropertyName.PropertyNodePath) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.NodePath>(this.PropertyNodePath);
return true;
}
- else if (name == PropertyName.property_Rid) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rid>(this.property_Rid);
+ else if (name == PropertyName.PropertyRid) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Rid>(this.PropertyRid);
return true;
}
- else if (name == PropertyName.property_GodotDictionary) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Collections.Dictionary>(this.property_GodotDictionary);
+ else if (name == PropertyName.PropertyGodotDictionary) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Collections.Dictionary>(this.PropertyGodotDictionary);
return true;
}
- else if (name == PropertyName.property_GodotArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Collections.Array>(this.property_GodotArray);
+ else if (name == PropertyName.PropertyGodotArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<global::Godot.Collections.Array>(this.PropertyGodotArray);
return true;
}
- else if (name == PropertyName.property_GodotGenericDictionary) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFromDictionary(this.property_GodotGenericDictionary);
+ else if (name == PropertyName.PropertyGodotGenericDictionary) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFromDictionary(this.PropertyGodotGenericDictionary);
return true;
}
- else if (name == PropertyName.property_GodotGenericArray) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFromArray(this.property_GodotGenericArray);
+ else if (name == PropertyName.PropertyGodotGenericArray) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFromArray(this.PropertyGodotGenericArray);
return true;
}
- else if (name == PropertyName._notGenerate_Property_String) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._notGenerate_Property_String);
+ else if (name == PropertyName._notGeneratePropertyString) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._notGeneratePropertyString);
return true;
}
- else if (name == PropertyName._notGenerate_Property_Int) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int>(this._notGenerate_Property_Int);
+ else if (name == PropertyName._notGeneratePropertyInt) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<int>(this._notGeneratePropertyInt);
return true;
}
- else if (name == PropertyName._fullProperty_String) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._fullProperty_String);
+ else if (name == PropertyName._fullPropertyString) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._fullPropertyString);
return true;
}
- else if (name == PropertyName._fullProperty_String_Complex) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._fullProperty_String_Complex);
+ else if (name == PropertyName._fullPropertyStringComplex) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._fullPropertyStringComplex);
return true;
}
- else if (name == PropertyName._lamdaProperty_String) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._lamdaProperty_String);
+ else if (name == PropertyName._lamdaPropertyString) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this._lamdaPropertyString);
return true;
}
return base.GetGodotClassPropertyValue(name, out value);
@@ -858,75 +858,75 @@ partial class ExportedProperties
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList()
{
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>();
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._notGenerate_Property_String, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.NotGenerate_Complex_Lamda_Property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.NotGenerate_Lamda_NoField_Property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.NotGenerate_Complex_Return_Property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._notGenerate_Property_Int, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.NotGenerate_Returns_Property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._fullProperty_String, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.FullProperty_String, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._fullProperty_String_Complex, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.FullProperty_String_Complex, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._lamdaProperty_String, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.LamdaProperty_String, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.property_Boolean, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_Char, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_SByte, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_Int16, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_Int32, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_Int64, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_Byte, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_UInt16, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_UInt32, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_UInt64, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)3, name: PropertyName.property_Single, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)3, name: PropertyName.property_Double, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.property_String, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)5, name: PropertyName.property_Vector2, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)6, name: PropertyName.property_Vector2I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)7, name: PropertyName.property_Rect2, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)8, name: PropertyName.property_Rect2I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)11, name: PropertyName.property_Transform2D, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)9, name: PropertyName.property_Vector3, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)10, name: PropertyName.property_Vector3I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)17, name: PropertyName.property_Basis, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)15, name: PropertyName.property_Quaternion, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)18, name: PropertyName.property_Transform3D, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)12, name: PropertyName.property_Vector4, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)13, name: PropertyName.property_Vector4I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)19, name: PropertyName.property_Projection, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)16, name: PropertyName.property_Aabb, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)20, name: PropertyName.property_Color, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)14, name: PropertyName.property_Plane, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.property_Callable, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)26, name: PropertyName.property_Signal, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_Enum, hint: (global::Godot.PropertyHint)2, hintString: "A,B,C", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.property_FlagsEnum, hint: (global::Godot.PropertyHint)6, hintString: "A:0,B:1,C:2", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)29, name: PropertyName.property_ByteArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)30, name: PropertyName.property_Int32Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)31, name: PropertyName.property_Int64Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)32, name: PropertyName.property_SingleArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)33, name: PropertyName.property_DoubleArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)34, name: PropertyName.property_StringArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)34, name: PropertyName.property_StringArrayEnum, hint: (global::Godot.PropertyHint)23, hintString: "4/2:A,B,C", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)35, name: PropertyName.property_Vector2Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)36, name: PropertyName.property_Vector3Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)37, name: PropertyName.property_ColorArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.property_GodotObjectOrDerivedArray, hint: (global::Godot.PropertyHint)23, hintString: "24/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._notGeneratePropertyString, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.NotGenerateComplexLamdaProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.NotGenerateLamdaNoFieldProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.NotGenerateComplexReturnProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName._notGeneratePropertyInt, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.NotGenerateReturnsProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._fullPropertyString, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.FullPropertyString, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._fullPropertyStringComplex, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.FullPropertyString_Complex, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName._lamdaPropertyString, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.LamdaPropertyString, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.PropertyBoolean, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyChar, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertySByte, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyInt16, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyInt32, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyInt64, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyByte, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyUInt16, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyUInt32, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyUInt64, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)3, name: PropertyName.PropertySingle, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)3, name: PropertyName.PropertyDouble, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.PropertyString, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)5, name: PropertyName.PropertyVector2, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)6, name: PropertyName.PropertyVector2I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)7, name: PropertyName.PropertyRect2, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)8, name: PropertyName.PropertyRect2I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)11, name: PropertyName.PropertyTransform2D, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)9, name: PropertyName.PropertyVector3, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)10, name: PropertyName.PropertyVector3I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)17, name: PropertyName.PropertyBasis, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)15, name: PropertyName.PropertyQuaternion, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)18, name: PropertyName.PropertyTransform3D, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)12, name: PropertyName.PropertyVector4, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)13, name: PropertyName.PropertyVector4I, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)19, name: PropertyName.PropertyProjection, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)16, name: PropertyName.PropertyAabb, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)20, name: PropertyName.PropertyColor, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)14, name: PropertyName.PropertyPlane, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.PropertyCallable, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)26, name: PropertyName.PropertySignal, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyEnum, hint: (global::Godot.PropertyHint)2, hintString: "A,B,C", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)2, name: PropertyName.PropertyFlagsEnum, hint: (global::Godot.PropertyHint)6, hintString: "A:0,B:1,C:2", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)29, name: PropertyName.PropertyByteArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)30, name: PropertyName.PropertyInt32Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)31, name: PropertyName.PropertyInt64Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)32, name: PropertyName.PropertySingleArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)33, name: PropertyName.PropertyDoubleArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)34, name: PropertyName.PropertyStringArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)34, name: PropertyName.PropertyStringArrayEnum, hint: (global::Godot.PropertyHint)23, hintString: "4/2:A,B,C", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)35, name: PropertyName.PropertyVector2Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)36, name: PropertyName.PropertyVector3Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)37, name: PropertyName.PropertyColorArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.PropertyGodotObjectOrDerivedArray, hint: (global::Godot.PropertyHint)23, hintString: "24/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_StringNameArray, hint: (global::Godot.PropertyHint)23, hintString: "21/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_NodePathArray, hint: (global::Godot.PropertyHint)23, hintString: "22/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.field_RidArray, hint: (global::Godot.PropertyHint)23, hintString: "23/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)0, name: PropertyName.property_Variant, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)135174, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)24, name: PropertyName.property_GodotObjectOrDerived, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)24, name: PropertyName.property_GodotResourceTexture, hint: (global::Godot.PropertyHint)17, hintString: "Texture", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)21, name: PropertyName.property_StringName, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)22, name: PropertyName.property_NodePath, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)23, name: PropertyName.property_Rid, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)27, name: PropertyName.property_GodotDictionary, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.property_GodotArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)27, name: PropertyName.property_GodotGenericDictionary, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
- properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.property_GodotGenericArray, hint: (global::Godot.PropertyHint)23, hintString: "2/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)0, name: PropertyName.PropertyVariant, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)135174, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)24, name: PropertyName.PropertyGodotObjectOrDerived, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)24, name: PropertyName.PropertyGodotResourceTexture, hint: (global::Godot.PropertyHint)17, hintString: "Texture", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)21, name: PropertyName.PropertyStringName, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)22, name: PropertyName.PropertyNodePath, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)23, name: PropertyName.PropertyRid, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)27, name: PropertyName.PropertyGodotDictionary, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.PropertyGodotArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)27, name: PropertyName.PropertyGodotGenericDictionary, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
+ properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.PropertyGodotGenericArray, hint: (global::Godot.PropertyHint)23, hintString: "2/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
return properties;
}
#pragma warning restore CS0109
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptPropertyDefVal.generated.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptPropertyDefVal.generated.cs
index a4cd10d080..a1b01aed4f 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptPropertyDefVal.generated.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptPropertyDefVal.generated.cs
@@ -12,134 +12,134 @@ partial class ExportedProperties
internal new static global::System.Collections.Generic.Dictionary<global::Godot.StringName, global::Godot.Variant> GetGodotPropertyDefaultValues()
{
var values = new global::System.Collections.Generic.Dictionary<global::Godot.StringName, global::Godot.Variant>(64);
- string __NotGenerate_Complex_Lamda_Property_default_value = default;
- values.Add(PropertyName.NotGenerate_Complex_Lamda_Property, global::Godot.Variant.From<string>(__NotGenerate_Complex_Lamda_Property_default_value));
- string __NotGenerate_Lamda_NoField_Property_default_value = default;
- values.Add(PropertyName.NotGenerate_Lamda_NoField_Property, global::Godot.Variant.From<string>(__NotGenerate_Lamda_NoField_Property_default_value));
- string __NotGenerate_Complex_Return_Property_default_value = default;
- values.Add(PropertyName.NotGenerate_Complex_Return_Property, global::Godot.Variant.From<string>(__NotGenerate_Complex_Return_Property_default_value));
- string __NotGenerate_Returns_Property_default_value = default;
- values.Add(PropertyName.NotGenerate_Returns_Property, global::Godot.Variant.From<string>(__NotGenerate_Returns_Property_default_value));
- string __FullProperty_String_default_value = "FullProperty_String";
- values.Add(PropertyName.FullProperty_String, global::Godot.Variant.From<string>(__FullProperty_String_default_value));
- string __FullProperty_String_Complex_default_value = new string("FullProperty_String_Complex") + global::System.Convert.ToInt32("1");
- values.Add(PropertyName.FullProperty_String_Complex, global::Godot.Variant.From<string>(__FullProperty_String_Complex_default_value));
- string __LamdaProperty_String_default_value = "LamdaProperty_String";
- values.Add(PropertyName.LamdaProperty_String, global::Godot.Variant.From<string>(__LamdaProperty_String_default_value));
- bool __property_Boolean_default_value = true;
- values.Add(PropertyName.property_Boolean, global::Godot.Variant.From<bool>(__property_Boolean_default_value));
- char __property_Char_default_value = 'f';
- values.Add(PropertyName.property_Char, global::Godot.Variant.From<char>(__property_Char_default_value));
- sbyte __property_SByte_default_value = 10;
- values.Add(PropertyName.property_SByte, global::Godot.Variant.From<sbyte>(__property_SByte_default_value));
- short __property_Int16_default_value = 10;
- values.Add(PropertyName.property_Int16, global::Godot.Variant.From<short>(__property_Int16_default_value));
- int __property_Int32_default_value = 10;
- values.Add(PropertyName.property_Int32, global::Godot.Variant.From<int>(__property_Int32_default_value));
- long __property_Int64_default_value = 10;
- values.Add(PropertyName.property_Int64, global::Godot.Variant.From<long>(__property_Int64_default_value));
- byte __property_Byte_default_value = 10;
- values.Add(PropertyName.property_Byte, global::Godot.Variant.From<byte>(__property_Byte_default_value));
- ushort __property_UInt16_default_value = 10;
- values.Add(PropertyName.property_UInt16, global::Godot.Variant.From<ushort>(__property_UInt16_default_value));
- uint __property_UInt32_default_value = 10;
- values.Add(PropertyName.property_UInt32, global::Godot.Variant.From<uint>(__property_UInt32_default_value));
- ulong __property_UInt64_default_value = 10;
- values.Add(PropertyName.property_UInt64, global::Godot.Variant.From<ulong>(__property_UInt64_default_value));
- float __property_Single_default_value = 10;
- values.Add(PropertyName.property_Single, global::Godot.Variant.From<float>(__property_Single_default_value));
- double __property_Double_default_value = 10;
- values.Add(PropertyName.property_Double, global::Godot.Variant.From<double>(__property_Double_default_value));
- string __property_String_default_value = "foo";
- values.Add(PropertyName.property_String, global::Godot.Variant.From<string>(__property_String_default_value));
- global::Godot.Vector2 __property_Vector2_default_value = new(10f, 10f);
- values.Add(PropertyName.property_Vector2, global::Godot.Variant.From<global::Godot.Vector2>(__property_Vector2_default_value));
- global::Godot.Vector2I __property_Vector2I_default_value = global::Godot.Vector2I.Up;
- values.Add(PropertyName.property_Vector2I, global::Godot.Variant.From<global::Godot.Vector2I>(__property_Vector2I_default_value));
- global::Godot.Rect2 __property_Rect2_default_value = new(new global::Godot.Vector2(10f, 10f), new global::Godot.Vector2(10f, 10f));
- values.Add(PropertyName.property_Rect2, global::Godot.Variant.From<global::Godot.Rect2>(__property_Rect2_default_value));
- global::Godot.Rect2I __property_Rect2I_default_value = new(new global::Godot.Vector2I(10, 10), new global::Godot.Vector2I(10, 10));
- values.Add(PropertyName.property_Rect2I, global::Godot.Variant.From<global::Godot.Rect2I>(__property_Rect2I_default_value));
- global::Godot.Transform2D __property_Transform2D_default_value = global::Godot.Transform2D.Identity;
- values.Add(PropertyName.property_Transform2D, global::Godot.Variant.From<global::Godot.Transform2D>(__property_Transform2D_default_value));
- global::Godot.Vector3 __property_Vector3_default_value = new(10f, 10f, 10f);
- values.Add(PropertyName.property_Vector3, global::Godot.Variant.From<global::Godot.Vector3>(__property_Vector3_default_value));
- global::Godot.Vector3I __property_Vector3I_default_value = global::Godot.Vector3I.Back;
- values.Add(PropertyName.property_Vector3I, global::Godot.Variant.From<global::Godot.Vector3I>(__property_Vector3I_default_value));
- global::Godot.Basis __property_Basis_default_value = new global::Godot.Basis(global::Godot.Quaternion.Identity);
- values.Add(PropertyName.property_Basis, global::Godot.Variant.From<global::Godot.Basis>(__property_Basis_default_value));
- global::Godot.Quaternion __property_Quaternion_default_value = new global::Godot.Quaternion(global::Godot.Basis.Identity);
- values.Add(PropertyName.property_Quaternion, global::Godot.Variant.From<global::Godot.Quaternion>(__property_Quaternion_default_value));
- global::Godot.Transform3D __property_Transform3D_default_value = global::Godot.Transform3D.Identity;
- values.Add(PropertyName.property_Transform3D, global::Godot.Variant.From<global::Godot.Transform3D>(__property_Transform3D_default_value));
- global::Godot.Vector4 __property_Vector4_default_value = new(10f, 10f, 10f, 10f);
- values.Add(PropertyName.property_Vector4, global::Godot.Variant.From<global::Godot.Vector4>(__property_Vector4_default_value));
- global::Godot.Vector4I __property_Vector4I_default_value = global::Godot.Vector4I.One;
- values.Add(PropertyName.property_Vector4I, global::Godot.Variant.From<global::Godot.Vector4I>(__property_Vector4I_default_value));
- global::Godot.Projection __property_Projection_default_value = global::Godot.Projection.Identity;
- values.Add(PropertyName.property_Projection, global::Godot.Variant.From<global::Godot.Projection>(__property_Projection_default_value));
- global::Godot.Aabb __property_Aabb_default_value = new global::Godot.Aabb(10f, 10f, 10f, new global::Godot.Vector3(1f, 1f, 1f));
- values.Add(PropertyName.property_Aabb, global::Godot.Variant.From<global::Godot.Aabb>(__property_Aabb_default_value));
- global::Godot.Color __property_Color_default_value = global::Godot.Colors.Aquamarine;
- values.Add(PropertyName.property_Color, global::Godot.Variant.From<global::Godot.Color>(__property_Color_default_value));
- global::Godot.Plane __property_Plane_default_value = global::Godot.Plane.PlaneXZ;
- values.Add(PropertyName.property_Plane, global::Godot.Variant.From<global::Godot.Plane>(__property_Plane_default_value));
- global::Godot.Callable __property_Callable_default_value = new global::Godot.Callable(global::Godot.Engine.GetMainLoop(), "_process");
- values.Add(PropertyName.property_Callable, global::Godot.Variant.From<global::Godot.Callable>(__property_Callable_default_value));
- global::Godot.Signal __property_Signal_default_value = new global::Godot.Signal(global::Godot.Engine.GetMainLoop(), "property_list_changed");
- values.Add(PropertyName.property_Signal, global::Godot.Variant.From<global::Godot.Signal>(__property_Signal_default_value));
- global::ExportedProperties.MyEnum __property_Enum_default_value = global::ExportedProperties.MyEnum.C;
- values.Add(PropertyName.property_Enum, global::Godot.Variant.From<global::ExportedProperties.MyEnum>(__property_Enum_default_value));
- global::ExportedProperties.MyFlagsEnum __property_FlagsEnum_default_value = global::ExportedProperties.MyFlagsEnum.C;
- values.Add(PropertyName.property_FlagsEnum, global::Godot.Variant.From<global::ExportedProperties.MyFlagsEnum>(__property_FlagsEnum_default_value));
- byte[] __property_ByteArray_default_value = { 0, 1, 2, 3, 4, 5, 6 };
- values.Add(PropertyName.property_ByteArray, global::Godot.Variant.From<byte[]>(__property_ByteArray_default_value));
- int[] __property_Int32Array_default_value = { 0, 1, 2, 3, 4, 5, 6 };
- values.Add(PropertyName.property_Int32Array, global::Godot.Variant.From<int[]>(__property_Int32Array_default_value));
- long[] __property_Int64Array_default_value = { 0, 1, 2, 3, 4, 5, 6 };
- values.Add(PropertyName.property_Int64Array, global::Godot.Variant.From<long[]>(__property_Int64Array_default_value));
- float[] __property_SingleArray_default_value = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
- values.Add(PropertyName.property_SingleArray, global::Godot.Variant.From<float[]>(__property_SingleArray_default_value));
- double[] __property_DoubleArray_default_value = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
- values.Add(PropertyName.property_DoubleArray, global::Godot.Variant.From<double[]>(__property_DoubleArray_default_value));
- string[] __property_StringArray_default_value = { "foo", "bar" };
- values.Add(PropertyName.property_StringArray, global::Godot.Variant.From<string[]>(__property_StringArray_default_value));
- string[] __property_StringArrayEnum_default_value = { "foo", "bar" };
- values.Add(PropertyName.property_StringArrayEnum, global::Godot.Variant.From<string[]>(__property_StringArrayEnum_default_value));
- global::Godot.Vector2[] __property_Vector2Array_default_value = { global::Godot.Vector2.Up, global::Godot.Vector2.Down, global::Godot.Vector2.Left, global::Godot.Vector2.Right };
- values.Add(PropertyName.property_Vector2Array, global::Godot.Variant.From<global::Godot.Vector2[]>(__property_Vector2Array_default_value));
- global::Godot.Vector3[] __property_Vector3Array_default_value = { global::Godot.Vector3.Up, global::Godot.Vector3.Down, global::Godot.Vector3.Left, global::Godot.Vector3.Right };
- values.Add(PropertyName.property_Vector3Array, global::Godot.Variant.From<global::Godot.Vector3[]>(__property_Vector3Array_default_value));
- global::Godot.Color[] __property_ColorArray_default_value = { global::Godot.Colors.Aqua, global::Godot.Colors.Aquamarine, global::Godot.Colors.Azure, global::Godot.Colors.Beige };
- values.Add(PropertyName.property_ColorArray, global::Godot.Variant.From<global::Godot.Color[]>(__property_ColorArray_default_value));
- global::Godot.GodotObject[] __property_GodotObjectOrDerivedArray_default_value = { null };
- values.Add(PropertyName.property_GodotObjectOrDerivedArray, global::Godot.Variant.CreateFrom(__property_GodotObjectOrDerivedArray_default_value));
+ string __NotGenerateComplexLamdaProperty_default_value = default;
+ values.Add(PropertyName.NotGenerateComplexLamdaProperty, global::Godot.Variant.From<string>(__NotGenerateComplexLamdaProperty_default_value));
+ string __NotGenerateLamdaNoFieldProperty_default_value = default;
+ values.Add(PropertyName.NotGenerateLamdaNoFieldProperty, global::Godot.Variant.From<string>(__NotGenerateLamdaNoFieldProperty_default_value));
+ string __NotGenerateComplexReturnProperty_default_value = default;
+ values.Add(PropertyName.NotGenerateComplexReturnProperty, global::Godot.Variant.From<string>(__NotGenerateComplexReturnProperty_default_value));
+ string __NotGenerateReturnsProperty_default_value = default;
+ values.Add(PropertyName.NotGenerateReturnsProperty, global::Godot.Variant.From<string>(__NotGenerateReturnsProperty_default_value));
+ string __FullPropertyString_default_value = "FullPropertyString";
+ values.Add(PropertyName.FullPropertyString, global::Godot.Variant.From<string>(__FullPropertyString_default_value));
+ string __FullPropertyString_Complex_default_value = new string("FullPropertyString_Complex") + global::System.Convert.ToInt32("1");
+ values.Add(PropertyName.FullPropertyString_Complex, global::Godot.Variant.From<string>(__FullPropertyString_Complex_default_value));
+ string __LamdaPropertyString_default_value = "LamdaPropertyString";
+ values.Add(PropertyName.LamdaPropertyString, global::Godot.Variant.From<string>(__LamdaPropertyString_default_value));
+ bool __PropertyBoolean_default_value = true;
+ values.Add(PropertyName.PropertyBoolean, global::Godot.Variant.From<bool>(__PropertyBoolean_default_value));
+ char __PropertyChar_default_value = 'f';
+ values.Add(PropertyName.PropertyChar, global::Godot.Variant.From<char>(__PropertyChar_default_value));
+ sbyte __PropertySByte_default_value = 10;
+ values.Add(PropertyName.PropertySByte, global::Godot.Variant.From<sbyte>(__PropertySByte_default_value));
+ short __PropertyInt16_default_value = 10;
+ values.Add(PropertyName.PropertyInt16, global::Godot.Variant.From<short>(__PropertyInt16_default_value));
+ int __PropertyInt32_default_value = 10;
+ values.Add(PropertyName.PropertyInt32, global::Godot.Variant.From<int>(__PropertyInt32_default_value));
+ long __PropertyInt64_default_value = 10;
+ values.Add(PropertyName.PropertyInt64, global::Godot.Variant.From<long>(__PropertyInt64_default_value));
+ byte __PropertyByte_default_value = 10;
+ values.Add(PropertyName.PropertyByte, global::Godot.Variant.From<byte>(__PropertyByte_default_value));
+ ushort __PropertyUInt16_default_value = 10;
+ values.Add(PropertyName.PropertyUInt16, global::Godot.Variant.From<ushort>(__PropertyUInt16_default_value));
+ uint __PropertyUInt32_default_value = 10;
+ values.Add(PropertyName.PropertyUInt32, global::Godot.Variant.From<uint>(__PropertyUInt32_default_value));
+ ulong __PropertyUInt64_default_value = 10;
+ values.Add(PropertyName.PropertyUInt64, global::Godot.Variant.From<ulong>(__PropertyUInt64_default_value));
+ float __PropertySingle_default_value = 10;
+ values.Add(PropertyName.PropertySingle, global::Godot.Variant.From<float>(__PropertySingle_default_value));
+ double __PropertyDouble_default_value = 10;
+ values.Add(PropertyName.PropertyDouble, global::Godot.Variant.From<double>(__PropertyDouble_default_value));
+ string __PropertyString_default_value = "foo";
+ values.Add(PropertyName.PropertyString, global::Godot.Variant.From<string>(__PropertyString_default_value));
+ global::Godot.Vector2 __PropertyVector2_default_value = new(10f, 10f);
+ values.Add(PropertyName.PropertyVector2, global::Godot.Variant.From<global::Godot.Vector2>(__PropertyVector2_default_value));
+ global::Godot.Vector2I __PropertyVector2I_default_value = global::Godot.Vector2I.Up;
+ values.Add(PropertyName.PropertyVector2I, global::Godot.Variant.From<global::Godot.Vector2I>(__PropertyVector2I_default_value));
+ global::Godot.Rect2 __PropertyRect2_default_value = new(new global::Godot.Vector2(10f, 10f), new global::Godot.Vector2(10f, 10f));
+ values.Add(PropertyName.PropertyRect2, global::Godot.Variant.From<global::Godot.Rect2>(__PropertyRect2_default_value));
+ global::Godot.Rect2I __PropertyRect2I_default_value = new(new global::Godot.Vector2I(10, 10), new global::Godot.Vector2I(10, 10));
+ values.Add(PropertyName.PropertyRect2I, global::Godot.Variant.From<global::Godot.Rect2I>(__PropertyRect2I_default_value));
+ global::Godot.Transform2D __PropertyTransform2D_default_value = global::Godot.Transform2D.Identity;
+ values.Add(PropertyName.PropertyTransform2D, global::Godot.Variant.From<global::Godot.Transform2D>(__PropertyTransform2D_default_value));
+ global::Godot.Vector3 __PropertyVector3_default_value = new(10f, 10f, 10f);
+ values.Add(PropertyName.PropertyVector3, global::Godot.Variant.From<global::Godot.Vector3>(__PropertyVector3_default_value));
+ global::Godot.Vector3I __PropertyVector3I_default_value = global::Godot.Vector3I.Back;
+ values.Add(PropertyName.PropertyVector3I, global::Godot.Variant.From<global::Godot.Vector3I>(__PropertyVector3I_default_value));
+ global::Godot.Basis __PropertyBasis_default_value = new global::Godot.Basis(global::Godot.Quaternion.Identity);
+ values.Add(PropertyName.PropertyBasis, global::Godot.Variant.From<global::Godot.Basis>(__PropertyBasis_default_value));
+ global::Godot.Quaternion __PropertyQuaternion_default_value = new global::Godot.Quaternion(global::Godot.Basis.Identity);
+ values.Add(PropertyName.PropertyQuaternion, global::Godot.Variant.From<global::Godot.Quaternion>(__PropertyQuaternion_default_value));
+ global::Godot.Transform3D __PropertyTransform3D_default_value = global::Godot.Transform3D.Identity;
+ values.Add(PropertyName.PropertyTransform3D, global::Godot.Variant.From<global::Godot.Transform3D>(__PropertyTransform3D_default_value));
+ global::Godot.Vector4 __PropertyVector4_default_value = new(10f, 10f, 10f, 10f);
+ values.Add(PropertyName.PropertyVector4, global::Godot.Variant.From<global::Godot.Vector4>(__PropertyVector4_default_value));
+ global::Godot.Vector4I __PropertyVector4I_default_value = global::Godot.Vector4I.One;
+ values.Add(PropertyName.PropertyVector4I, global::Godot.Variant.From<global::Godot.Vector4I>(__PropertyVector4I_default_value));
+ global::Godot.Projection __PropertyProjection_default_value = global::Godot.Projection.Identity;
+ values.Add(PropertyName.PropertyProjection, global::Godot.Variant.From<global::Godot.Projection>(__PropertyProjection_default_value));
+ global::Godot.Aabb __PropertyAabb_default_value = new global::Godot.Aabb(10f, 10f, 10f, new global::Godot.Vector3(1f, 1f, 1f));
+ values.Add(PropertyName.PropertyAabb, global::Godot.Variant.From<global::Godot.Aabb>(__PropertyAabb_default_value));
+ global::Godot.Color __PropertyColor_default_value = global::Godot.Colors.Aquamarine;
+ values.Add(PropertyName.PropertyColor, global::Godot.Variant.From<global::Godot.Color>(__PropertyColor_default_value));
+ global::Godot.Plane __PropertyPlane_default_value = global::Godot.Plane.PlaneXZ;
+ values.Add(PropertyName.PropertyPlane, global::Godot.Variant.From<global::Godot.Plane>(__PropertyPlane_default_value));
+ global::Godot.Callable __PropertyCallable_default_value = new global::Godot.Callable(global::Godot.Engine.GetMainLoop(), "_process");
+ values.Add(PropertyName.PropertyCallable, global::Godot.Variant.From<global::Godot.Callable>(__PropertyCallable_default_value));
+ global::Godot.Signal __PropertySignal_default_value = new global::Godot.Signal(global::Godot.Engine.GetMainLoop(), "Propertylist_changed");
+ values.Add(PropertyName.PropertySignal, global::Godot.Variant.From<global::Godot.Signal>(__PropertySignal_default_value));
+ global::ExportedProperties.MyEnum __PropertyEnum_default_value = global::ExportedProperties.MyEnum.C;
+ values.Add(PropertyName.PropertyEnum, global::Godot.Variant.From<global::ExportedProperties.MyEnum>(__PropertyEnum_default_value));
+ global::ExportedProperties.MyFlagsEnum __PropertyFlagsEnum_default_value = global::ExportedProperties.MyFlagsEnum.C;
+ values.Add(PropertyName.PropertyFlagsEnum, global::Godot.Variant.From<global::ExportedProperties.MyFlagsEnum>(__PropertyFlagsEnum_default_value));
+ byte[] __PropertyByteArray_default_value = { 0, 1, 2, 3, 4, 5, 6 };
+ values.Add(PropertyName.PropertyByteArray, global::Godot.Variant.From<byte[]>(__PropertyByteArray_default_value));
+ int[] __PropertyInt32Array_default_value = { 0, 1, 2, 3, 4, 5, 6 };
+ values.Add(PropertyName.PropertyInt32Array, global::Godot.Variant.From<int[]>(__PropertyInt32Array_default_value));
+ long[] __PropertyInt64Array_default_value = { 0, 1, 2, 3, 4, 5, 6 };
+ values.Add(PropertyName.PropertyInt64Array, global::Godot.Variant.From<long[]>(__PropertyInt64Array_default_value));
+ float[] __PropertySingleArray_default_value = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
+ values.Add(PropertyName.PropertySingleArray, global::Godot.Variant.From<float[]>(__PropertySingleArray_default_value));
+ double[] __PropertyDoubleArray_default_value = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
+ values.Add(PropertyName.PropertyDoubleArray, global::Godot.Variant.From<double[]>(__PropertyDoubleArray_default_value));
+ string[] __PropertyStringArray_default_value = { "foo", "bar" };
+ values.Add(PropertyName.PropertyStringArray, global::Godot.Variant.From<string[]>(__PropertyStringArray_default_value));
+ string[] __PropertyStringArrayEnum_default_value = { "foo", "bar" };
+ values.Add(PropertyName.PropertyStringArrayEnum, global::Godot.Variant.From<string[]>(__PropertyStringArrayEnum_default_value));
+ global::Godot.Vector2[] __PropertyVector2Array_default_value = { global::Godot.Vector2.Up, global::Godot.Vector2.Down, global::Godot.Vector2.Left, global::Godot.Vector2.Right };
+ values.Add(PropertyName.PropertyVector2Array, global::Godot.Variant.From<global::Godot.Vector2[]>(__PropertyVector2Array_default_value));
+ global::Godot.Vector3[] __PropertyVector3Array_default_value = { global::Godot.Vector3.Up, global::Godot.Vector3.Down, global::Godot.Vector3.Left, global::Godot.Vector3.Right };
+ values.Add(PropertyName.PropertyVector3Array, global::Godot.Variant.From<global::Godot.Vector3[]>(__PropertyVector3Array_default_value));
+ global::Godot.Color[] __PropertyColorArray_default_value = { global::Godot.Colors.Aqua, global::Godot.Colors.Aquamarine, global::Godot.Colors.Azure, global::Godot.Colors.Beige };
+ values.Add(PropertyName.PropertyColorArray, global::Godot.Variant.From<global::Godot.Color[]>(__PropertyColorArray_default_value));
+ global::Godot.GodotObject[] __PropertyGodotObjectOrDerivedArray_default_value = { null };
+ values.Add(PropertyName.PropertyGodotObjectOrDerivedArray, global::Godot.Variant.CreateFrom(__PropertyGodotObjectOrDerivedArray_default_value));
global::Godot.StringName[] __field_StringNameArray_default_value = { "foo", "bar" };
values.Add(PropertyName.field_StringNameArray, global::Godot.Variant.From<global::Godot.StringName[]>(__field_StringNameArray_default_value));
global::Godot.NodePath[] __field_NodePathArray_default_value = { "foo", "bar" };
values.Add(PropertyName.field_NodePathArray, global::Godot.Variant.From<global::Godot.NodePath[]>(__field_NodePathArray_default_value));
global::Godot.Rid[] __field_RidArray_default_value = { default, default, default };
values.Add(PropertyName.field_RidArray, global::Godot.Variant.From<global::Godot.Rid[]>(__field_RidArray_default_value));
- global::Godot.Variant __property_Variant_default_value = "foo";
- values.Add(PropertyName.property_Variant, global::Godot.Variant.From<global::Godot.Variant>(__property_Variant_default_value));
- global::Godot.GodotObject __property_GodotObjectOrDerived_default_value = default;
- values.Add(PropertyName.property_GodotObjectOrDerived, global::Godot.Variant.From<global::Godot.GodotObject>(__property_GodotObjectOrDerived_default_value));
- global::Godot.Texture __property_GodotResourceTexture_default_value = default;
- values.Add(PropertyName.property_GodotResourceTexture, global::Godot.Variant.From<global::Godot.Texture>(__property_GodotResourceTexture_default_value));
- global::Godot.StringName __property_StringName_default_value = new global::Godot.StringName("foo");
- values.Add(PropertyName.property_StringName, global::Godot.Variant.From<global::Godot.StringName>(__property_StringName_default_value));
- global::Godot.NodePath __property_NodePath_default_value = new global::Godot.NodePath("foo");
- values.Add(PropertyName.property_NodePath, global::Godot.Variant.From<global::Godot.NodePath>(__property_NodePath_default_value));
- global::Godot.Rid __property_Rid_default_value = default;
- values.Add(PropertyName.property_Rid, global::Godot.Variant.From<global::Godot.Rid>(__property_Rid_default_value));
- global::Godot.Collections.Dictionary __property_GodotDictionary_default_value = new() { { "foo", 10 }, { global::Godot.Vector2.Up, global::Godot.Colors.Chocolate } };
- values.Add(PropertyName.property_GodotDictionary, global::Godot.Variant.From<global::Godot.Collections.Dictionary>(__property_GodotDictionary_default_value));
- global::Godot.Collections.Array __property_GodotArray_default_value = new() { "foo", 10, global::Godot.Vector2.Up, global::Godot.Colors.Chocolate };
- values.Add(PropertyName.property_GodotArray, global::Godot.Variant.From<global::Godot.Collections.Array>(__property_GodotArray_default_value));
- global::Godot.Collections.Dictionary<string, bool> __property_GodotGenericDictionary_default_value = new() { { "foo", true }, { "bar", false } };
- values.Add(PropertyName.property_GodotGenericDictionary, global::Godot.Variant.CreateFrom(__property_GodotGenericDictionary_default_value));
- global::Godot.Collections.Array<int> __property_GodotGenericArray_default_value = new() { 0, 1, 2, 3, 4, 5, 6 };
- values.Add(PropertyName.property_GodotGenericArray, global::Godot.Variant.CreateFrom(__property_GodotGenericArray_default_value));
+ global::Godot.Variant __PropertyVariant_default_value = "foo";
+ values.Add(PropertyName.PropertyVariant, global::Godot.Variant.From<global::Godot.Variant>(__PropertyVariant_default_value));
+ global::Godot.GodotObject __PropertyGodotObjectOrDerived_default_value = default;
+ values.Add(PropertyName.PropertyGodotObjectOrDerived, global::Godot.Variant.From<global::Godot.GodotObject>(__PropertyGodotObjectOrDerived_default_value));
+ global::Godot.Texture __PropertyGodotResourceTexture_default_value = default;
+ values.Add(PropertyName.PropertyGodotResourceTexture, global::Godot.Variant.From<global::Godot.Texture>(__PropertyGodotResourceTexture_default_value));
+ global::Godot.StringName __PropertyStringName_default_value = new global::Godot.StringName("foo");
+ values.Add(PropertyName.PropertyStringName, global::Godot.Variant.From<global::Godot.StringName>(__PropertyStringName_default_value));
+ global::Godot.NodePath __PropertyNodePath_default_value = new global::Godot.NodePath("foo");
+ values.Add(PropertyName.PropertyNodePath, global::Godot.Variant.From<global::Godot.NodePath>(__PropertyNodePath_default_value));
+ global::Godot.Rid __PropertyRid_default_value = default;
+ values.Add(PropertyName.PropertyRid, global::Godot.Variant.From<global::Godot.Rid>(__PropertyRid_default_value));
+ global::Godot.Collections.Dictionary __PropertyGodotDictionary_default_value = new() { { "foo", 10 }, { global::Godot.Vector2.Up, global::Godot.Colors.Chocolate } };
+ values.Add(PropertyName.PropertyGodotDictionary, global::Godot.Variant.From<global::Godot.Collections.Dictionary>(__PropertyGodotDictionary_default_value));
+ global::Godot.Collections.Array __PropertyGodotArray_default_value = new() { "foo", 10, global::Godot.Vector2.Up, global::Godot.Colors.Chocolate };
+ values.Add(PropertyName.PropertyGodotArray, global::Godot.Variant.From<global::Godot.Collections.Array>(__PropertyGodotArray_default_value));
+ global::Godot.Collections.Dictionary<string, bool> __PropertyGodotGenericDictionary_default_value = new() { { "foo", true }, { "bar", false } };
+ values.Add(PropertyName.PropertyGodotGenericDictionary, global::Godot.Variant.CreateFrom(__PropertyGodotGenericDictionary_default_value));
+ global::Godot.Collections.Array<int> __PropertyGodotGenericArray_default_value = new() { 0, 1, 2, 3, 4, 5, 6 };
+ values.Add(PropertyName.PropertyGodotGenericArray, global::Godot.Variant.CreateFrom(__PropertyGodotGenericArray_default_value));
return values;
}
#endif // TOOLS
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/MixedReadOnlyWriteOnly_ScriptProperties.generated.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/MixedReadOnlyWriteOnly_ScriptProperties.generated.cs
index f812457aa5..91f808f55e 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/MixedReadOnlyWriteOnly_ScriptProperties.generated.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/MixedReadOnlyWriteOnly_ScriptProperties.generated.cs
@@ -9,40 +9,40 @@ partial class MixedReadOnlyWriteOnly
/// </summary>
public new class PropertyName : global::Godot.GodotObject.PropertyName {
/// <summary>
- /// Cached name for the 'readonly_auto_property' property.
+ /// Cached name for the 'ReadOnlyAutoProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName readonly_auto_property = "readonly_auto_property";
+ public new static readonly global::Godot.StringName ReadOnlyAutoProperty = "ReadOnlyAutoProperty";
/// <summary>
- /// Cached name for the 'readonly_property' property.
+ /// Cached name for the 'ReadOnlyProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName readonly_property = "readonly_property";
+ public new static readonly global::Godot.StringName ReadOnlyProperty = "ReadOnlyProperty";
/// <summary>
- /// Cached name for the 'initonly_auto_property' property.
+ /// Cached name for the 'InitOnlyAutoProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName initonly_auto_property = "initonly_auto_property";
+ public new static readonly global::Godot.StringName InitOnlyAutoProperty = "InitOnlyAutoProperty";
/// <summary>
- /// Cached name for the 'writeonly_property' property.
+ /// Cached name for the 'WriteOnlyProperty' property.
/// </summary>
- public new static readonly global::Godot.StringName writeonly_property = "writeonly_property";
+ public new static readonly global::Godot.StringName WriteOnlyProperty = "WriteOnlyProperty";
/// <summary>
- /// Cached name for the 'readonly_field' field.
+ /// Cached name for the 'ReadOnlyField' field.
/// </summary>
- public new static readonly global::Godot.StringName readonly_field = "readonly_field";
+ public new static readonly global::Godot.StringName ReadOnlyField = "ReadOnlyField";
/// <summary>
- /// Cached name for the 'writeonly_backing_field' field.
+ /// Cached name for the '_writeOnlyBackingField' field.
/// </summary>
- public new static readonly global::Godot.StringName writeonly_backing_field = "writeonly_backing_field";
+ public new static readonly global::Godot.StringName _writeOnlyBackingField = "_writeOnlyBackingField";
}
/// <inheritdoc/>
[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.writeonly_property) {
- this.writeonly_property = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
+ if (name == PropertyName.WriteOnlyProperty) {
+ this.WriteOnlyProperty = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
return true;
}
- else if (name == PropertyName.writeonly_backing_field) {
- this.writeonly_backing_field = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
+ else if (name == PropertyName._writeOnlyBackingField) {
+ this._writeOnlyBackingField = global::Godot.NativeInterop.VariantUtils.ConvertTo<bool>(value);
return true;
}
return base.SetGodotClassPropertyValue(name, value);
@@ -51,24 +51,24 @@ partial class MixedReadOnlyWriteOnly
[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.readonly_auto_property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.readonly_auto_property);
+ if (name == PropertyName.ReadOnlyAutoProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.ReadOnlyAutoProperty);
return true;
}
- else if (name == PropertyName.readonly_property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.readonly_property);
+ else if (name == PropertyName.ReadOnlyProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.ReadOnlyProperty);
return true;
}
- else if (name == PropertyName.initonly_auto_property) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.initonly_auto_property);
+ else if (name == PropertyName.InitOnlyAutoProperty) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.InitOnlyAutoProperty);
return true;
}
- else if (name == PropertyName.readonly_field) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.readonly_field);
+ else if (name == PropertyName.ReadOnlyField) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<string>(this.ReadOnlyField);
return true;
}
- else if (name == PropertyName.writeonly_backing_field) {
- value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this.writeonly_backing_field);
+ else if (name == PropertyName._writeOnlyBackingField) {
+ value = global::Godot.NativeInterop.VariantUtils.CreateFrom<bool>(this._writeOnlyBackingField);
return true;
}
return base.GetGodotClassPropertyValue(name, out value);
@@ -82,12 +82,12 @@ partial class MixedReadOnlyWriteOnly
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo> GetGodotPropertyList()
{
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>();
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.readonly_field, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.readonly_auto_property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.readonly_property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.initonly_auto_property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.writeonly_backing_field, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
- properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.writeonly_property, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
+ 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));
+ 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));
+ 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));
+ 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));
+ 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));
+ 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));
return properties;
}
#pragma warning restore CS0109
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs
index 94c2bda363..2586db1137 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs
@@ -2,8 +2,8 @@ using Godot;
public partial class AllReadOnly : GodotObject
{
- public readonly string readonly_field = "foo";
- public string readonly_auto_property { get; } = "foo";
- public string readonly_property { get => "foo"; }
- public string initonly_auto_property { get; init; }
+ public readonly string ReadOnlyField = "foo";
+ public string ReadOnlyAutoProperty { get; } = "foo";
+ public string ReadOnlyProperty { get => "foo"; }
+ public string InitOnlyAutoProperty { get; init; }
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllWriteOnly.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllWriteOnly.cs
index 156d6bb6a5..e2ebff4876 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllWriteOnly.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllWriteOnly.cs
@@ -2,6 +2,6 @@ using Godot;
public partial class AllWriteOnly : GodotObject
{
- bool writeonly_backing_field = false;
- public bool writeonly_property { set => writeonly_backing_field = value; }
+ private bool _writeOnlyBackingField = false;
+ public bool WriteOnlyProperty { set => _writeOnlyBackingField = value; }
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Bar.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Bar.cs
index dfe2217c26..d364e40bf0 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Bar.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Bar.cs
@@ -1,14 +1,14 @@
using Godot;
-partial class Bar : GodotObject
+public partial class Bar : GodotObject
{
}
// Foo in another file
-partial class Foo
+public partial class Foo
{
}
-partial class NotSameNameAsFile : GodotObject
+public partial class NotSameNameAsFile : GodotObject
{
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedFields.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedFields.cs
index 09d654ffcb..0938d10afe 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedFields.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedFields.cs
@@ -4,99 +4,99 @@ using System.Collections.Generic;
public partial class ExportedFields : GodotObject
{
- [Export] private Boolean field_Boolean = true;
- [Export] private Char field_Char = 'f';
- [Export] private SByte field_SByte = 10;
- [Export] private Int16 field_Int16 = 10;
- [Export] private Int32 field_Int32 = 10;
- [Export] private Int64 field_Int64 = 10;
- [Export] private Byte field_Byte = 10;
- [Export] private UInt16 field_UInt16 = 10;
- [Export] private UInt32 field_UInt32 = 10;
- [Export] private UInt64 field_UInt64 = 10;
- [Export] private Single field_Single = 10;
- [Export] private Double field_Double = 10;
- [Export] private String field_String = "foo";
+ [Export] private Boolean _fieldBoolean = true;
+ [Export] private Char _fieldChar = 'f';
+ [Export] private SByte _fieldSByte = 10;
+ [Export] private Int16 _fieldInt16 = 10;
+ [Export] private Int32 _fieldInt32 = 10;
+ [Export] private Int64 _fieldInt64 = 10;
+ [Export] private Byte _fieldByte = 10;
+ [Export] private UInt16 _fieldUInt16 = 10;
+ [Export] private UInt32 _fieldUInt32 = 10;
+ [Export] private UInt64 _fieldUInt64 = 10;
+ [Export] private Single _fieldSingle = 10;
+ [Export] private Double _fieldDouble = 10;
+ [Export] private String _fieldString = "foo";
// Godot structs
- [Export] private Vector2 field_Vector2 = new(10f, 10f);
- [Export] private Vector2I field_Vector2I = Vector2I.Up;
- [Export] private Rect2 field_Rect2 = new(new Vector2(10f, 10f), new Vector2(10f, 10f));
- [Export] private Rect2I field_Rect2I = new(new Vector2I(10, 10), new Vector2I(10, 10));
- [Export] private Transform2D field_Transform2D = Transform2D.Identity;
- [Export] private Vector3 field_Vector3 = new(10f, 10f, 10f);
- [Export] private Vector3I field_Vector3I = Vector3I.Back;
- [Export] private Basis field_Basis = new Basis(Quaternion.Identity);
- [Export] private Quaternion field_Quaternion = new Quaternion(Basis.Identity);
- [Export] private Transform3D field_Transform3D = Transform3D.Identity;
- [Export] private Vector4 field_Vector4 = new(10f, 10f, 10f, 10f);
- [Export] private Vector4I field_Vector4I = Vector4I.One;
- [Export] private Projection field_Projection = Projection.Identity;
- [Export] private Aabb field_Aabb = new Aabb(10f, 10f, 10f, new Vector3(1f, 1f, 1f));
- [Export] private Color field_Color = Colors.Aquamarine;
- [Export] private Plane field_Plane = Plane.PlaneXZ;
- [Export] private Callable field_Callable = new Callable(Engine.GetMainLoop(), "_process");
- [Export] private Signal field_Signal = new Signal(Engine.GetMainLoop(), "property_list_changed");
+ [Export] private Vector2 _fieldVector2 = new(10f, 10f);
+ [Export] private Vector2I _fieldVector2I = Vector2I.Up;
+ [Export] private Rect2 _fieldRect2 = new(new Vector2(10f, 10f), new Vector2(10f, 10f));
+ [Export] private Rect2I _fieldRect2I = new(new Vector2I(10, 10), new Vector2I(10, 10));
+ [Export] private Transform2D _fieldTransform2D = Transform2D.Identity;
+ [Export] private Vector3 _fieldVector3 = new(10f, 10f, 10f);
+ [Export] private Vector3I _fieldVector3I = Vector3I.Back;
+ [Export] private Basis _fieldBasis = new Basis(Quaternion.Identity);
+ [Export] private Quaternion _fieldQuaternion = new Quaternion(Basis.Identity);
+ [Export] private Transform3D _fieldTransform3D = Transform3D.Identity;
+ [Export] private Vector4 _fieldVector4 = new(10f, 10f, 10f, 10f);
+ [Export] private Vector4I _fieldVector4I = Vector4I.One;
+ [Export] private Projection _fieldProjection = Projection.Identity;
+ [Export] private Aabb _fieldAabb = new Aabb(10f, 10f, 10f, new Vector3(1f, 1f, 1f));
+ [Export] private Color _fieldColor = Colors.Aquamarine;
+ [Export] private Plane _fieldPlane = Plane.PlaneXZ;
+ [Export] private Callable _fieldCallable = new Callable(Engine.GetMainLoop(), "_process");
+ [Export] private Signal _fieldSignal = new Signal(Engine.GetMainLoop(), "property_list_changed");
// Enums
- enum MyEnum
+ public enum MyEnum
{
A,
B,
C
}
- [Export] private MyEnum field_Enum = MyEnum.C;
+ [Export] private MyEnum _fieldEnum = MyEnum.C;
[Flags]
- enum MyFlagsEnum
+ public enum MyFlagsEnum
{
A,
B,
C
}
- [Export] private MyFlagsEnum field_FlagsEnum = MyFlagsEnum.C;
+ [Export] private MyFlagsEnum _fieldFlagsEnum = MyFlagsEnum.C;
// Arrays
- [Export] private Byte[] field_ByteArray = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Int32[] field_Int32Array = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Int64[] field_Int64Array = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Single[] field_SingleArray = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
- [Export] private Double[] field_DoubleArray = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
- [Export] private String[] field_StringArray = { "foo", "bar" };
- [Export(PropertyHint.Enum, "A,B,C")] private String[] field_StringArrayEnum = { "foo", "bar" };
- [Export] private Vector2[] field_Vector2Array = { Vector2.Up, Vector2.Down, Vector2.Left, Vector2.Right };
- [Export] private Vector3[] field_Vector3Array = { Vector3.Up, Vector3.Down, Vector3.Left, Vector3.Right };
- [Export] private Color[] field_ColorArray = { Colors.Aqua, Colors.Aquamarine, Colors.Azure, Colors.Beige };
- [Export] private GodotObject[] field_GodotObjectOrDerivedArray = { null };
- [Export] private StringName[] field_StringNameArray = { "foo", "bar" };
- [Export] private NodePath[] field_NodePathArray = { "foo", "bar" };
- [Export] private Rid[] field_RidArray = { default, default, default };
+ [Export] private Byte[] _fieldByteArray = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Int32[] _fieldInt32Array = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Int64[] _fieldInt64Array = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Single[] _fieldSingleArray = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
+ [Export] private Double[] _fieldDoubleArray = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
+ [Export] private String[] _fieldStringArray = { "foo", "bar" };
+ [Export(PropertyHint.Enum, "A,B,C")] private String[] _fieldStringArrayEnum = { "foo", "bar" };
+ [Export] private Vector2[] _fieldVector2Array = { Vector2.Up, Vector2.Down, Vector2.Left, Vector2.Right };
+ [Export] private Vector3[] _fieldVector3Array = { Vector3.Up, Vector3.Down, Vector3.Left, Vector3.Right };
+ [Export] private Color[] _fieldColorArray = { Colors.Aqua, Colors.Aquamarine, Colors.Azure, Colors.Beige };
+ [Export] private GodotObject[] _fieldGodotObjectOrDerivedArray = { null };
+ [Export] private StringName[] _fieldStringNameArray = { "foo", "bar" };
+ [Export] private NodePath[] _fieldNodePathArray = { "foo", "bar" };
+ [Export] private Rid[] _fieldRidArray = { default, default, default };
// Note we use Array and not System.Array. This tests the generated namespace qualification.
- [Export] private Int32[] field_empty_Int32Array = Array.Empty<Int32>();
+ [Export] private Int32[] _fieldEmptyInt32Array = Array.Empty<Int32>();
// Note we use List and not System.Collections.Generic.
- [Export] private int[] field_array_from_list = new List<int>(Array.Empty<int>()).ToArray();
+ [Export] private int[] _fieldArrayFromList = new List<int>(Array.Empty<int>()).ToArray();
// Variant
- [Export] private Variant field_Variant = "foo";
+ [Export] private Variant _fieldVariant = "foo";
// Classes
- [Export] private GodotObject field_GodotObjectOrDerived;
- [Export] private Godot.Texture field_GodotResourceTexture;
- [Export] private StringName field_StringName = new StringName("foo");
- [Export] private NodePath field_NodePath = new NodePath("foo");
- [Export] private Rid field_Rid;
+ [Export] private GodotObject _fieldGodotObjectOrDerived;
+ [Export] private Godot.Texture _fieldGodotResourceTexture;
+ [Export] private StringName _fieldStringName = new StringName("foo");
+ [Export] private NodePath _fieldNodePath = new NodePath("foo");
+ [Export] private Rid _fieldRid;
[Export]
- private Godot.Collections.Dictionary field_GodotDictionary = new() { { "foo", 10 }, { Vector2.Up, Colors.Chocolate } };
+ private Godot.Collections.Dictionary _fieldGodotDictionary = new() { { "foo", 10 }, { Vector2.Up, Colors.Chocolate } };
[Export]
- private Godot.Collections.Array field_GodotArray = new() { "foo", 10, Vector2.Up, Colors.Chocolate };
+ private Godot.Collections.Array _fieldGodotArray = new() { "foo", 10, Vector2.Up, Colors.Chocolate };
[Export]
- private Godot.Collections.Dictionary<string, bool> field_GodotGenericDictionary = new() { { "foo", true }, { "bar", false } };
+ private Godot.Collections.Dictionary<string, bool> _fieldGodotGenericDictionary = new() { { "foo", true }, { "bar", false } };
[Export]
- private Godot.Collections.Array<int> field_GodotGenericArray = new() { 0, 1, 2, 3, 4, 5, 6 };
+ private Godot.Collections.Array<int> _fieldGodotGenericArray = new() { 0, 1, 2, 3, 4, 5, 6 };
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedProperties.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedProperties.cs
index 3783838dae..9ae23066fc 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedProperties.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedProperties.cs
@@ -4,41 +4,41 @@ using System;
public partial class ExportedProperties : GodotObject
{
// Do not generate default value
- private String _notGenerate_Property_String = new string("not generate");
+ private String _notGeneratePropertyString = new string("not generate");
[Export]
- public String NotGenerate_Complex_Lamda_Property
+ public String NotGenerateComplexLamdaProperty
{
- get => _notGenerate_Property_String + Convert.ToInt32("1");
- set => _notGenerate_Property_String = value;
+ get => _notGeneratePropertyString + Convert.ToInt32("1");
+ set => _notGeneratePropertyString = value;
}
[Export]
- public String NotGenerate_Lamda_NoField_Property
+ public String NotGenerateLamdaNoFieldProperty
{
get => new string("not generate");
- set => _notGenerate_Property_String = value;
+ set => _notGeneratePropertyString = value;
}
[Export]
- public String NotGenerate_Complex_Return_Property
+ public String NotGenerateComplexReturnProperty
{
get
{
- return _notGenerate_Property_String + Convert.ToInt32("1");
+ return _notGeneratePropertyString + Convert.ToInt32("1");
}
set
{
- _notGenerate_Property_String = value;
+ _notGeneratePropertyString = value;
}
}
- private int _notGenerate_Property_Int = 1;
+ private int _notGeneratePropertyInt = 1;
[Export]
- public string NotGenerate_Returns_Property
+ public string NotGenerateReturnsProperty
{
get
{
- if (_notGenerate_Property_Int == 1)
+ if (_notGeneratePropertyInt == 1)
{
return "a";
}
@@ -49,138 +49,138 @@ public partial class ExportedProperties : GodotObject
}
set
{
- _notGenerate_Property_Int = value == "a" ? 1 : 2;
+ _notGeneratePropertyInt = value == "a" ? 1 : 2;
}
}
// Full Property
- private String _fullProperty_String = "FullProperty_String";
+ private String _fullPropertyString = "FullPropertyString";
[Export]
- public String FullProperty_String
+ public String FullPropertyString
{
get
{
- return _fullProperty_String;
+ return _fullPropertyString;
}
set
{
- _fullProperty_String = value;
+ _fullPropertyString = value;
}
}
- private String _fullProperty_String_Complex = new string("FullProperty_String_Complex") + Convert.ToInt32("1");
+ private String _fullPropertyStringComplex = new string("FullPropertyString_Complex") + Convert.ToInt32("1");
[Export]
- public String FullProperty_String_Complex
+ public String FullPropertyString_Complex
{
get
{
- return _fullProperty_String_Complex;
+ return _fullPropertyStringComplex;
}
set
{
- _fullProperty_String_Complex = value;
+ _fullPropertyStringComplex = value;
}
}
// Lambda Property
- private String _lamdaProperty_String = "LamdaProperty_String";
+ private String _lamdaPropertyString = "LamdaPropertyString";
[Export]
- public String LamdaProperty_String
+ public String LamdaPropertyString
{
- get => _lamdaProperty_String;
- set => _lamdaProperty_String = value;
+ get => _lamdaPropertyString;
+ set => _lamdaPropertyString = value;
}
// Auto Property
- [Export] private Boolean property_Boolean { get; set; } = true;
- [Export] private Char property_Char { get; set; } = 'f';
- [Export] private SByte property_SByte { get; set; } = 10;
- [Export] private Int16 property_Int16 { get; set; } = 10;
- [Export] private Int32 property_Int32 { get; set; } = 10;
- [Export] private Int64 property_Int64 { get; set; } = 10;
- [Export] private Byte property_Byte { get; set; } = 10;
- [Export] private UInt16 property_UInt16 { get; set; } = 10;
- [Export] private UInt32 property_UInt32 { get; set; } = 10;
- [Export] private UInt64 property_UInt64 { get; set; } = 10;
- [Export] private Single property_Single { get; set; } = 10;
- [Export] private Double property_Double { get; set; } = 10;
- [Export] private String property_String { get; set; } = "foo";
+ [Export] private Boolean PropertyBoolean { get; set; } = true;
+ [Export] private Char PropertyChar { get; set; } = 'f';
+ [Export] private SByte PropertySByte { get; set; } = 10;
+ [Export] private Int16 PropertyInt16 { get; set; } = 10;
+ [Export] private Int32 PropertyInt32 { get; set; } = 10;
+ [Export] private Int64 PropertyInt64 { get; set; } = 10;
+ [Export] private Byte PropertyByte { get; set; } = 10;
+ [Export] private UInt16 PropertyUInt16 { get; set; } = 10;
+ [Export] private UInt32 PropertyUInt32 { get; set; } = 10;
+ [Export] private UInt64 PropertyUInt64 { get; set; } = 10;
+ [Export] private Single PropertySingle { get; set; } = 10;
+ [Export] private Double PropertyDouble { get; set; } = 10;
+ [Export] private String PropertyString { get; set; } = "foo";
// Godot structs
- [Export] private Vector2 property_Vector2 { get; set; } = new(10f, 10f);
- [Export] private Vector2I property_Vector2I { get; set; } = Vector2I.Up;
- [Export] private Rect2 property_Rect2 { get; set; } = new(new Vector2(10f, 10f), new Vector2(10f, 10f));
- [Export] private Rect2I property_Rect2I { get; set; } = new(new Vector2I(10, 10), new Vector2I(10, 10));
- [Export] private Transform2D property_Transform2D { get; set; } = Transform2D.Identity;
- [Export] private Vector3 property_Vector3 { get; set; } = new(10f, 10f, 10f);
- [Export] private Vector3I property_Vector3I { get; set; } = Vector3I.Back;
- [Export] private Basis property_Basis { get; set; } = new Basis(Quaternion.Identity);
- [Export] private Quaternion property_Quaternion { get; set; } = new Quaternion(Basis.Identity);
- [Export] private Transform3D property_Transform3D { get; set; } = Transform3D.Identity;
- [Export] private Vector4 property_Vector4 { get; set; } = new(10f, 10f, 10f, 10f);
- [Export] private Vector4I property_Vector4I { get; set; } = Vector4I.One;
- [Export] private Projection property_Projection { get; set; } = Projection.Identity;
- [Export] private Aabb property_Aabb { get; set; } = new Aabb(10f, 10f, 10f, new Vector3(1f, 1f, 1f));
- [Export] private Color property_Color { get; set; } = Colors.Aquamarine;
- [Export] private Plane property_Plane { get; set; } = Plane.PlaneXZ;
- [Export] private Callable property_Callable { get; set; } = new Callable(Engine.GetMainLoop(), "_process");
- [Export] private Signal property_Signal { get; set; } = new Signal(Engine.GetMainLoop(), "property_list_changed");
+ [Export] private Vector2 PropertyVector2 { get; set; } = new(10f, 10f);
+ [Export] private Vector2I PropertyVector2I { get; set; } = Vector2I.Up;
+ [Export] private Rect2 PropertyRect2 { get; set; } = new(new Vector2(10f, 10f), new Vector2(10f, 10f));
+ [Export] private Rect2I PropertyRect2I { get; set; } = new(new Vector2I(10, 10), new Vector2I(10, 10));
+ [Export] private Transform2D PropertyTransform2D { get; set; } = Transform2D.Identity;
+ [Export] private Vector3 PropertyVector3 { get; set; } = new(10f, 10f, 10f);
+ [Export] private Vector3I PropertyVector3I { get; set; } = Vector3I.Back;
+ [Export] private Basis PropertyBasis { get; set; } = new Basis(Quaternion.Identity);
+ [Export] private Quaternion PropertyQuaternion { get; set; } = new Quaternion(Basis.Identity);
+ [Export] private Transform3D PropertyTransform3D { get; set; } = Transform3D.Identity;
+ [Export] private Vector4 PropertyVector4 { get; set; } = new(10f, 10f, 10f, 10f);
+ [Export] private Vector4I PropertyVector4I { get; set; } = Vector4I.One;
+ [Export] private Projection PropertyProjection { get; set; } = Projection.Identity;
+ [Export] private Aabb PropertyAabb { get; set; } = new Aabb(10f, 10f, 10f, new Vector3(1f, 1f, 1f));
+ [Export] private Color PropertyColor { get; set; } = Colors.Aquamarine;
+ [Export] private Plane PropertyPlane { get; set; } = Plane.PlaneXZ;
+ [Export] private Callable PropertyCallable { get; set; } = new Callable(Engine.GetMainLoop(), "_process");
+ [Export] private Signal PropertySignal { get; set; } = new Signal(Engine.GetMainLoop(), "Propertylist_changed");
// Enums
- enum MyEnum
+ public enum MyEnum
{
A,
B,
C
}
- [Export] private MyEnum property_Enum { get; set; } = MyEnum.C;
+ [Export] private MyEnum PropertyEnum { get; set; } = MyEnum.C;
[Flags]
- enum MyFlagsEnum
+ public enum MyFlagsEnum
{
A,
B,
C
}
- [Export] private MyFlagsEnum property_FlagsEnum { get; set; } = MyFlagsEnum.C;
+ [Export] private MyFlagsEnum PropertyFlagsEnum { get; set; } = MyFlagsEnum.C;
// Arrays
- [Export] private Byte[] property_ByteArray { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Int32[] property_Int32Array { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Int64[] property_Int64Array { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
- [Export] private Single[] property_SingleArray { get; set; } = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
- [Export] private Double[] property_DoubleArray { get; set; } = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
- [Export] private String[] property_StringArray { get; set; } = { "foo", "bar" };
- [Export(PropertyHint.Enum, "A,B,C")] private String[] property_StringArrayEnum { get; set; } = { "foo", "bar" };
- [Export] private Vector2[] property_Vector2Array { get; set; } = { Vector2.Up, Vector2.Down, Vector2.Left, Vector2.Right };
- [Export] private Vector3[] property_Vector3Array { get; set; } = { Vector3.Up, Vector3.Down, Vector3.Left, Vector3.Right };
- [Export] private Color[] property_ColorArray { get; set; } = { Colors.Aqua, Colors.Aquamarine, Colors.Azure, Colors.Beige };
- [Export] private GodotObject[] property_GodotObjectOrDerivedArray { get; set; } = { null };
+ [Export] private Byte[] PropertyByteArray { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Int32[] PropertyInt32Array { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Int64[] PropertyInt64Array { get; set; } = { 0, 1, 2, 3, 4, 5, 6 };
+ [Export] private Single[] PropertySingleArray { get; set; } = { 0f, 1f, 2f, 3f, 4f, 5f, 6f };
+ [Export] private Double[] PropertyDoubleArray { get; set; } = { 0d, 1d, 2d, 3d, 4d, 5d, 6d };
+ [Export] private String[] PropertyStringArray { get; set; } = { "foo", "bar" };
+ [Export(PropertyHint.Enum, "A,B,C")] private String[] PropertyStringArrayEnum { get; set; } = { "foo", "bar" };
+ [Export] private Vector2[] PropertyVector2Array { get; set; } = { Vector2.Up, Vector2.Down, Vector2.Left, Vector2.Right };
+ [Export] private Vector3[] PropertyVector3Array { get; set; } = { Vector3.Up, Vector3.Down, Vector3.Left, Vector3.Right };
+ [Export] private Color[] PropertyColorArray { get; set; } = { Colors.Aqua, Colors.Aquamarine, Colors.Azure, Colors.Beige };
+ [Export] private GodotObject[] PropertyGodotObjectOrDerivedArray { get; set; } = { null };
[Export] private StringName[] field_StringNameArray { get; set; } = { "foo", "bar" };
[Export] private NodePath[] field_NodePathArray { get; set; } = { "foo", "bar" };
[Export] private Rid[] field_RidArray { get; set; } = { default, default, default };
// Variant
- [Export] private Variant property_Variant { get; set; } = "foo";
+ [Export] private Variant PropertyVariant { get; set; } = "foo";
// Classes
- [Export] private GodotObject property_GodotObjectOrDerived { get; set; }
- [Export] private Godot.Texture property_GodotResourceTexture { get; set; }
- [Export] private StringName property_StringName { get; set; } = new StringName("foo");
- [Export] private NodePath property_NodePath { get; set; } = new NodePath("foo");
- [Export] private Rid property_Rid { get; set; }
+ [Export] private GodotObject PropertyGodotObjectOrDerived { get; set; }
+ [Export] private Godot.Texture PropertyGodotResourceTexture { get; set; }
+ [Export] private StringName PropertyStringName { get; set; } = new StringName("foo");
+ [Export] private NodePath PropertyNodePath { get; set; } = new NodePath("foo");
+ [Export] private Rid PropertyRid { get; set; }
[Export]
- private Godot.Collections.Dictionary property_GodotDictionary { get; set; } = new() { { "foo", 10 }, { Vector2.Up, Colors.Chocolate } };
+ private Godot.Collections.Dictionary PropertyGodotDictionary { get; set; } = new() { { "foo", 10 }, { Vector2.Up, Colors.Chocolate } };
[Export]
- private Godot.Collections.Array property_GodotArray { get; set; } = new() { "foo", 10, Vector2.Up, Colors.Chocolate };
+ private Godot.Collections.Array PropertyGodotArray { get; set; } = new() { "foo", 10, Vector2.Up, Colors.Chocolate };
[Export]
- private Godot.Collections.Dictionary<string, bool> property_GodotGenericDictionary { get; set; } = new() { { "foo", true }, { "bar", false } };
+ private Godot.Collections.Dictionary<string, bool> PropertyGodotGenericDictionary { get; set; } = new() { { "foo", true }, { "bar", false } };
[Export]
- private Godot.Collections.Array<int> property_GodotGenericArray { get; set; } = new() { 0, 1, 2, 3, 4, 5, 6 };
+ private Godot.Collections.Array<int> PropertyGodotGenericArray { get; set; } = new() { 0, 1, 2, 3, 4, 5, 6 };
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Foo.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Foo.cs
index 26853553c7..53801990d3 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Foo.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Foo.cs
@@ -1,10 +1,10 @@
using Godot;
-partial class Foo : GodotObject
+public partial class Foo : GodotObject
{
}
// Foo again in the same file
-partial class Foo
+public partial class Foo
{
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.GD0003.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.GD0003.cs
index 15c1e03801..83e9094a25 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.GD0003.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.GD0003.cs
@@ -1,18 +1,18 @@
using Godot;
-partial class Generic<T> : GodotObject
+public partial class Generic<T> : GodotObject
{
private int _field;
}
// Generic again but different generic parameters
-partial class {|GD0003:Generic|}<T, R> : GodotObject
+public partial class {|GD0003:Generic|}<T, R> : GodotObject
{
private int _field;
}
// Generic again but without generic parameters
-partial class {|GD0003:Generic|} : GodotObject
+public partial class {|GD0003:Generic|} : GodotObject
{
private int _field;
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs
index 5a83e21e96..ce8a7fe218 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs
@@ -1,6 +1,6 @@
using Godot;
-partial class Generic<T> : GodotObject
+public partial class Generic<T> : GodotObject
{
private int _field;
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MixedReadOnlyWriteOnly.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MixedReadOnlyWriteOnly.cs
index 61a48cefc9..190a3fb256 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MixedReadOnlyWriteOnly.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MixedReadOnlyWriteOnly.cs
@@ -2,11 +2,11 @@ using Godot;
public partial class MixedReadOnlyWriteOnly : GodotObject
{
- public readonly string readonly_field = "foo";
- public string readonly_auto_property { get; } = "foo";
- public string readonly_property { get => "foo"; }
- public string initonly_auto_property { get; init; }
+ public readonly string ReadOnlyField = "foo";
+ public string ReadOnlyAutoProperty { get; } = "foo";
+ public string ReadOnlyProperty { get => "foo"; }
+ public string InitOnlyAutoProperty { get; init; }
- bool writeonly_backing_field = false;
- public bool writeonly_property { set => writeonly_backing_field = value; }
+ bool _writeOnlyBackingField = false;
+ public bool WriteOnlyProperty { set => _writeOnlyBackingField = value; }
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MoreExportedFields.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MoreExportedFields.cs
index 47063a9cdf..0cf462f799 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MoreExportedFields.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/MoreExportedFields.cs
@@ -4,5 +4,5 @@ using System;
public partial class ExportedFields : GodotObject
{
// Note we use Array and not System.Array. This tests the generated namespace qualification.
- [Export] private Int64[] field_empty_Int64Array = Array.Empty<Int64>();
+ [Export] private Int64[] _fieldEmptyInt64Array = Array.Empty<Int64>();
}
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ScriptBoilerplate.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ScriptBoilerplate.cs
index 5506465b92..b431522e7c 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ScriptBoilerplate.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ScriptBoilerplate.cs
@@ -24,7 +24,7 @@ public partial class ScriptBoilerplate : Node
}
}
-partial struct OuterClass
+public partial struct OuterClass
{
public partial class NestedClass : RefCounted
{
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs
index 35db0d6f10..9784bd0b78 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ExtensionMethods.cs
@@ -9,7 +9,7 @@ using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Godot.SourceGenerators
{
- static class ExtensionMethods
+ internal static class ExtensionMethods
{
public static bool TryGetGlobalAnalyzerProperty(
this GeneratorExecutionContext context, string property, out string? value
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GlobalClassAnalyzer.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GlobalClassAnalyzer.cs
index 77530ea049..22af25b9c4 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GlobalClassAnalyzer.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GlobalClassAnalyzer.cs
@@ -1,9 +1,7 @@
using System.Collections.Immutable;
using System.Linq;
-
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
-using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace Godot.SourceGenerators
@@ -23,10 +21,8 @@ namespace Godot.SourceGenerators
context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration);
}
- private void AnalyzeNode(SyntaxNodeAnalysisContext context)
+ private static void AnalyzeNode(SyntaxNodeAnalysisContext context)
{
- var typeClassDecl = (ClassDeclarationSyntax)context.Node;
-
// Return if not a type symbol or the type is not a global class.
if (context.ContainingSymbol is not INamedTypeSymbol typeSymbol ||
!typeSymbol.GetAttributes().Any(a => a.AttributeClass?.IsGodotGlobalClassAttribute() ?? false))
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptMethodsGenerator.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptMethodsGenerator.cs
index f837dcd810..f314f7dada 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptMethodsGenerator.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptMethodsGenerator.cs
@@ -171,7 +171,7 @@ namespace Godot.SourceGenerators
if (godotClassMethods.Length > 0)
{
- const string listType = "global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo>";
+ const string ListType = "global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo>";
source.Append(" /// <summary>\n")
.Append(" /// Get the method information for all the methods declared in this class.\n")
@@ -182,11 +182,11 @@ namespace Godot.SourceGenerators
source.Append(" [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]\n");
source.Append(" internal new static ")
- .Append(listType)
+ .Append(ListType)
.Append(" GetGodotMethodList()\n {\n");
source.Append(" var methods = new ")
- .Append(listType)
+ .Append(ListType)
.Append("(")
.Append(godotClassMethods.Length)
.Append(");\n");
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs
index ecd208e38e..a0e410e31a 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs
@@ -246,7 +246,7 @@ namespace Godot.SourceGenerators
}
// Generate GetGodotPropertyList
- const string dictionaryType = "global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>";
+ const string DictionaryType = "global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>";
source.Append(" /// <summary>\n")
.Append(" /// Get the property information for all the properties declared in this class.\n")
@@ -257,11 +257,11 @@ namespace Godot.SourceGenerators
source.Append(" [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]\n");
source.Append(" internal new static ")
- .Append(dictionaryType)
+ .Append(DictionaryType)
.Append(" GetGodotPropertyList()\n {\n");
source.Append(" var properties = new ")
- .Append(dictionaryType)
+ .Append(DictionaryType)
.Append("();\n");
// To retain the definition order (and display categories correctly), we want to
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs
index 0ec0a0827c..d13a828875 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs
@@ -351,7 +351,7 @@ namespace Godot.SourceGenerators
{
source.Append("#pragma warning disable CS0109 // Disable warning about redundant 'new' keyword\n");
- const string dictionaryType =
+ const string DictionaryType =
"global::System.Collections.Generic.Dictionary<global::Godot.StringName, global::Godot.Variant>";
source.Append("#if TOOLS\n");
@@ -366,11 +366,11 @@ namespace Godot.SourceGenerators
source.Append(" [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]\n");
source.Append(" internal new static ");
- source.Append(dictionaryType);
+ source.Append(DictionaryType);
source.Append(" GetGodotPropertyDefaultValues()\n {\n");
source.Append(" var values = new ");
- source.Append(dictionaryType);
+ source.Append(DictionaryType);
source.Append("(");
source.Append(exportedMembers.Count);
source.Append(");\n");
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptSignalsGenerator.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptSignalsGenerator.cs
index ff8422ea09..107bd93faa 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptSignalsGenerator.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptSignalsGenerator.cs
@@ -225,7 +225,7 @@ namespace Godot.SourceGenerators
if (godotSignalDelegates.Count > 0)
{
- const string listType = "global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo>";
+ const string ListType = "global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo>";
source.Append(" /// <summary>\n")
.Append(" /// Get the signal information for all the signals declared in this class.\n")
@@ -236,11 +236,11 @@ namespace Godot.SourceGenerators
source.Append(" [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]\n");
source.Append(" internal new static ")
- .Append(listType)
+ .Append(ListType)
.Append(" GetGodotSignalList()\n {\n");
source.Append(" var signals = new ")
- .Append(listType)
+ .Append(ListType)
.Append("(")
.Append(godotSignalDelegates.Count)
.Append(");\n");
diff --git a/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs b/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs
index 3072ca2857..5bf07f626b 100644
--- a/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs
+++ b/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs
@@ -210,7 +210,7 @@ namespace GodotTools.OpenVisualStudio
return null;
}
- static string NormalizePath(string path)
+ private static string NormalizePath(string path)
{
return new Uri(Path.GetFullPath(path)).LocalPath
.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar)
diff --git a/modules/mono/editor/GodotTools/GodotTools/Internals/Internal.cs b/modules/mono/editor/GodotTools/GodotTools/Internals/Internal.cs
index 90c443ebb8..175bb78051 100644
--- a/modules/mono/editor/GodotTools/GodotTools/Internals/Internal.cs
+++ b/modules/mono/editor/GodotTools/GodotTools/Internals/Internal.cs
@@ -1,3 +1,6 @@
+#pragma warning disable IDE1006 // Naming rule violation
+// ReSharper disable InconsistentNaming
+
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
@@ -8,7 +11,6 @@ using GodotTools.IdeMessaging.Requests;
namespace GodotTools.Internals
{
- [SuppressMessage("ReSharper", "InconsistentNaming")]
[GenerateUnmanagedCallbacks(typeof(InternalUnmanagedCallbacks))]
internal static partial class Internal
{
diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp
index 7960a1ad5b..87b3c7f551 100644
--- a/modules/mono/editor/bindings_generator.cpp
+++ b/modules/mono/editor/bindings_generator.cpp
@@ -1538,7 +1538,7 @@ void BindingsGenerator::_generate_global_constants(StringBuilder &p_output) {
p_output.append("namespace " BINDINGS_NAMESPACE ";\n\n");
- p_output.append("public static partial class " BINDINGS_GLOBAL_SCOPE_CLASS "\n{");
+ p_output.append("public static partial class " BINDINGS_GLOBAL_SCOPE_CLASS "\n" OPEN_BLOCK);
for (const ConstantInterface &iconstant : global_constants) {
if (iconstant.const_doc && iconstant.const_doc->description.size()) {
@@ -1589,50 +1589,48 @@ void BindingsGenerator::_generate_global_constants(StringBuilder &p_output) {
_log("Declaring global enum '%s' inside struct '%s'\n", enum_proxy_name.utf8().get_data(), enum_class_name.utf8().get_data());
- p_output.append("\npublic partial struct ");
- p_output.append(enum_class_name);
- p_output.append("\n" OPEN_BLOCK);
+ p_output << "\npublic partial struct " << enum_class_name << "\n" OPEN_BLOCK;
}
+ const String maybe_indent = !enum_in_static_class ? "" : INDENT1;
+
if (ienum.is_flags) {
- p_output.append("\n[System.Flags]");
+ p_output << "\n"
+ << maybe_indent << "[System.Flags]";
}
- p_output.append("\npublic enum ");
- p_output.append(enum_proxy_name);
- p_output.append(" : long");
- p_output.append("\n" OPEN_BLOCK);
+ p_output << "\n"
+ << maybe_indent << "public enum " << enum_proxy_name << " : long"
+ << "\n"
+ << maybe_indent << OPEN_BLOCK;
- const ConstantInterface &last = ienum.constants.back()->get();
for (const ConstantInterface &iconstant : ienum.constants) {
if (iconstant.const_doc && iconstant.const_doc->description.size()) {
String xml_summary = bbcode_to_xml(fix_doc_description(iconstant.const_doc->description), nullptr);
Vector<String> summary_lines = xml_summary.length() ? xml_summary.split("\n") : Vector<String>();
if (summary_lines.size()) {
- p_output.append(INDENT1 "/// <summary>\n");
+ p_output << maybe_indent << INDENT1 "/// <summary>\n";
for (int i = 0; i < summary_lines.size(); i++) {
- p_output.append(INDENT1 "/// ");
- p_output.append(summary_lines[i]);
- p_output.append("\n");
+ p_output << maybe_indent << INDENT1 "/// " << summary_lines[i] << "\n";
}
- p_output.append(INDENT1 "/// </summary>\n");
+ p_output << maybe_indent << INDENT1 "/// </summary>\n";
}
}
- p_output.append(INDENT1);
- p_output.append(iconstant.proxy_name);
- p_output.append(" = ");
- p_output.append(itos(iconstant.value));
- p_output.append(&iconstant != &last ? ",\n" : "\n");
+ p_output << maybe_indent << INDENT1
+ << iconstant.proxy_name
+ << " = "
+ << itos(iconstant.value)
+ << ",\n";
}
- p_output.append(CLOSE_BLOCK);
+ p_output << maybe_indent << CLOSE_BLOCK;
if (enum_in_static_class) {
- p_output.append(CLOSE_BLOCK);
+ p_output << CLOSE_BLOCK;
}
}
}
@@ -2162,7 +2160,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
output << MEMBER_BEGIN "public " << itype.proxy_name << "() : this("
<< (itype.memory_own ? "true" : "false") << ")\n" OPEN_BLOCK_L1
<< INDENT2 "unsafe\n" INDENT2 OPEN_BLOCK
- << INDENT3 "_ConstructAndInitialize(" CS_STATIC_FIELD_NATIVE_CTOR ", "
+ << INDENT3 "ConstructAndInitialize(" CS_STATIC_FIELD_NATIVE_CTOR ", "
<< BINDINGS_NATIVE_NAME_FIELD ", CachedType, refCounted: "
<< (itype.is_ref_counted ? "true" : "false") << ");\n"
<< CLOSE_BLOCK_L2 CLOSE_BLOCK_L1;
@@ -2171,7 +2169,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
output << MEMBER_BEGIN "internal " << itype.proxy_name << "() : this("
<< (itype.memory_own ? "true" : "false") << ")\n" OPEN_BLOCK_L1
<< INDENT2 "unsafe\n" INDENT2 OPEN_BLOCK
- << INDENT3 "_ConstructAndInitialize(null, "
+ << INDENT3 "ConstructAndInitialize(null, "
<< BINDINGS_NATIVE_NAME_FIELD ", CachedType, refCounted: "
<< (itype.is_ref_counted ? "true" : "false") << ");\n"
<< CLOSE_BLOCK_L2 CLOSE_BLOCK_L1;
@@ -2180,7 +2178,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
// Add.. em.. trick constructor. Sort of.
output.append(MEMBER_BEGIN "internal ");
output.append(itype.proxy_name);
- output.append("(bool " CS_PARAM_MEMORYOWN ") : base(" CS_PARAM_MEMORYOWN ") {}\n");
+ output.append("(bool " CS_PARAM_MEMORYOWN ") : base(" CS_PARAM_MEMORYOWN ") { }\n");
}
}
@@ -2241,6 +2239,9 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
<< INDENT1 "/// <param name=\"args\">Arguments to use with the invoked method.</param>\n"
<< INDENT1 "/// <param name=\"ret\">Value returned by the invoked method.</param>\n";
+ // Avoid raising diagnostics because of calls to obsolete methods.
+ output << "#pragma warning disable CS0618 // Member is obsolete\n";
+
output << INDENT1 "protected internal " << (is_derived_type ? "override" : "virtual")
<< " bool " CS_METHOD_INVOKE_GODOT_CLASS_METHOD "(in godot_string_name method, "
<< "NativeVariantPtrArgs args, out godot_variant ret)\n"
@@ -2319,6 +2320,8 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
output << INDENT1 "}\n";
+ output << "#pragma warning restore CS0618\n";
+
// Generate HasGodotClassMethod
output << MEMBER_BEGIN "/// <summary>\n"
@@ -2969,7 +2972,7 @@ Error BindingsGenerator::_generate_cs_signal(const BindingsGenerator::TypeInterf
ERR_FAIL_NULL_V(arg_type, ERR_BUG); // Argument type not found
if (idx != 0) {
- p_output << ",";
+ p_output << ", ";
}
p_output << sformat(arg_type->cs_variant_to_managed,
diff --git a/modules/mono/glue/GodotSharp/.editorconfig b/modules/mono/glue/GodotSharp/.editorconfig
index 987e6c543b..0d9a88ecb8 100644
--- a/modules/mono/glue/GodotSharp/.editorconfig
+++ b/modules/mono/glue/GodotSharp/.editorconfig
@@ -1,18 +1,37 @@
+# This file should only contain severity override to diagnostics, in order to make generated and
+# interop code compilation readable. We want to limit the scope of suppression as much as possible.
+
[**/Generated/**.cs]
+# IDE1006: Naming rule violation
+dotnet_diagnostic.IDE1006.severity = none
# CA1062: Validate parameter is non-null before using it
# Useful for generated code, as it disables nullable
dotnet_diagnostic.CA1062.severity = error
# CA1069: Enums should not have duplicate values
dotnet_diagnostic.CA1069.severity = none
+# CA1707: Identifiers should not contain underscores
+dotnet_diagnostic.CA1707.severity = none
# CA1708: Identifiers should differ by more than case
dotnet_diagnostic.CA1708.severity = none
+# CA1711: Identifiers should not have incorrect suffix
+# Disable warning for suffixes like EventHandler, Flags, Enum, etc.
+dotnet_diagnostic.CA1711.severity = none
# CA1716: Identifiers should not match keywords
# This is suppressed, because it will report `@event` as well as `event`
dotnet_diagnostic.CA1716.severity = none
+# CA1720: Identifiers should not contain type names
+dotnet_diagnostic.CA1720.severity = none
# CS1591: Missing XML comment for publicly visible type or member
dotnet_diagnostic.CS1591.severity = none
# CS1573: Parameter has no matching param tag in the XML comment
dotnet_diagnostic.CS1573.severity = none
+# TODO: Temporary change to not pollute the warnings, but this denotes with ou doc generation
+# CS1734: XML comment on '' has a paramref tag for '', but there is no parameter by that name
+dotnet_diagnostic.CS1734.severity = none
+
+[GodotSharp/Core/NativeInterop/**.cs]
+# CA1720: Identifiers should not contain type names
+dotnet_diagnostic.CA1720.severity = none
[GodotSharp/Core/**.cs]
# CS1591: Missing XML comment for publicly visible type or member
diff --git a/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs b/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs
index 750e11777d..f3f6759e1d 100644
--- a/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs
+++ b/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs
@@ -387,7 +387,7 @@ using Godot.NativeInterop;
}
private static bool IsGodotInteropStruct(ITypeSymbol type) =>
- GodotInteropStructs.Contains(type.FullQualifiedNameOmitGlobal());
+ _godotInteropStructs.Contains(type.FullQualifiedNameOmitGlobal());
private static bool IsByRefParameter(IParameterSymbol parameter) =>
parameter.RefKind is RefKind.In or RefKind.Out or RefKind.Ref;
@@ -448,7 +448,7 @@ using Godot.NativeInterop;
source.Append(";\n");
}
- private static readonly string[] GodotInteropStructs =
+ private static readonly string[] _godotInteropStructs =
{
"Godot.NativeInterop.godot_ref",
"Godot.NativeInterop.godot_variant_call_error",
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs b/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
index daaf4730fd..4e80afc4a5 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
@@ -8,6 +8,8 @@ using System.ComponentModel;
namespace Godot;
#pragma warning disable CS1734 // XML comment on 'X' has a paramref tag for 'Y', but there is no parameter by that name.
+// TODO: This is currently disabled because of https://github.com/dotnet/roslyn/issues/52904
+#pragma warning disable IDE0040 // Add accessibility modifiers.
partial class AnimationNode
{
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs
index fa74d5e101..9b5aec7031 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs
@@ -151,7 +151,6 @@ namespace Godot.Collections
// from derived types (e.g.: Node[]). Implicit conversion from Derived[] to Base[] are
// fine as long as the array is not mutated. However, Span does this type checking at
// instantiation, so it's not possible to use it even when not mutating anything.
- // ReSharper disable once RedundantNameQualifier
/// <summary>
/// Constructs a new <see cref="Array"/> from the given ReadOnlySpan's elements.
/// </summary>
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/RpcAttribute.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/RpcAttribute.cs
index 6a73d6f70c..c53e964156 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/RpcAttribute.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/RpcAttribute.cs
@@ -19,7 +19,7 @@ namespace Godot
/// <summary>
/// If the method will also be called locally; otherwise, it is only called remotely.
/// </summary>
- public bool CallLocal { get; init; } = false;
+ public bool CallLocal { get; init; }
/// <summary>
/// Transfer mode for the annotated method.
@@ -29,7 +29,7 @@ namespace Godot
/// <summary>
/// Transfer channel for the annotated mode.
/// </summary>
- public int TransferChannel { get; init; } = 0;
+ public int TransferChannel { get; init; }
/// <summary>
/// Constructs a <see cref="RpcAttribute"/> instance.
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/AlcReloadCfg.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/AlcReloadCfg.cs
index ac2e2fae3c..af1f4860cd 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/AlcReloadCfg.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/AlcReloadCfg.cs
@@ -2,7 +2,7 @@ namespace Godot.Bridge;
public static class AlcReloadCfg
{
- private static bool _configured = false;
+ private static bool _configured;
public static void Configure(bool alcReloadEnabled)
{
@@ -14,5 +14,5 @@ public static class AlcReloadCfg
IsAlcReloadingEnabled = alcReloadEnabled;
}
- internal static bool IsAlcReloadingEnabled = false;
+ internal static bool IsAlcReloadingEnabled;
}
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs
index 0f271d6547..1b23276bbd 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs
@@ -30,7 +30,8 @@ namespace Godot.Bridge
foreach (var type in typesInAlc.Keys)
{
if (_scriptTypeBiMap.RemoveByScriptType(type, out IntPtr scriptPtr) &&
- (!_pathTypeBiMap.TryGetScriptPath(type, out string? scriptPath) || scriptPath.StartsWith("csharp://")))
+ (!_pathTypeBiMap.TryGetScriptPath(type, out string? scriptPath) ||
+ scriptPath.StartsWith("csharp://", StringComparison.Ordinal)))
{
// For scripts without a path, we need to keep the class qualified name for reloading
_scriptDataForReload.TryAdd(scriptPtr,
@@ -584,7 +585,7 @@ namespace Godot.Bridge
// (every Resource must have a unique path). So we create a unique "virtual" path
// for each type.
- if (!scriptPath.StartsWith("res://"))
+ if (!scriptPath.StartsWith("res://", StringComparison.Ordinal))
{
throw new ArgumentException("Script path must start with 'res://'.", nameof(scriptPath));
}
@@ -597,7 +598,7 @@ namespace Godot.Bridge
{
// This path is slower, but it's only executed for the first instantiation of the type
- if (scriptType.IsConstructedGenericType && !scriptPath.StartsWith("csharp://"))
+ if (scriptType.IsConstructedGenericType && !scriptPath.StartsWith("csharp://", StringComparison.Ordinal))
{
// If the script type is generic it can't be loaded using the real script path.
// Construct a virtual path unique to this constructed generic type and add it
@@ -700,7 +701,6 @@ namespace Godot.Bridge
return godot_bool.False;
}
- // ReSharper disable once RedundantNameQualifier
if (!typeof(GodotObject).IsAssignableFrom(scriptType))
{
// The class no longer inherits GodotObject, can't reload
@@ -1007,8 +1007,9 @@ namespace Godot.Bridge
return (List<MethodInfo>?)getGodotMethodListMethod.Invoke(null, null);
}
+#pragma warning disable IDE1006 // Naming rule violation
// ReSharper disable once InconsistentNaming
- [SuppressMessage("ReSharper", "NotAccessedField.Local")]
+ // ReSharper disable once NotAccessedField.Local
[StructLayout(LayoutKind.Sequential)]
private ref struct godotsharp_property_info
{
@@ -1025,6 +1026,7 @@ namespace Godot.Bridge
HintString.Dispose();
}
}
+#pragma warning restore IDE1006
[UnmanagedCallersOnly]
internal static unsafe void GetPropertyInfoList(IntPtr scriptPtr,
@@ -1063,9 +1065,9 @@ namespace Godot.Bridge
int length = properties.Count;
// There's no recursion here, so it's ok to go with a big enough number for most cases
- // stackMaxSize = stackMaxLength * sizeof(godotsharp_property_info)
- const int stackMaxLength = 32;
- bool useStack = length < stackMaxLength;
+ // StackMaxSize = StackMaxLength * sizeof(godotsharp_property_info)
+ const int StackMaxLength = 32;
+ bool useStack = length < StackMaxLength;
godotsharp_property_info* interopProperties;
@@ -1073,7 +1075,7 @@ namespace Godot.Bridge
{
// Weird limitation, hence the need for aux:
// "In the case of pointer types, you can use a stackalloc expression only in a local variable declaration to initialize the variable."
- var aux = stackalloc godotsharp_property_info[stackMaxLength];
+ var aux = stackalloc godotsharp_property_info[StackMaxLength];
interopProperties = aux;
}
else
@@ -1124,8 +1126,9 @@ namespace Godot.Bridge
}
}
+#pragma warning disable IDE1006 // Naming rule violation
// ReSharper disable once InconsistentNaming
- [SuppressMessage("ReSharper", "NotAccessedField.Local")]
+ // ReSharper disable once NotAccessedField.Local
[StructLayout(LayoutKind.Sequential)]
private ref struct godotsharp_property_def_val_pair
{
@@ -1133,6 +1136,7 @@ namespace Godot.Bridge
public godot_string_name Name; // Not owned
public godot_variant Value; // Not owned
}
+#pragma warning restore IDE1006
private delegate bool InvokeGodotClassStaticMethodDelegate(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret);
@@ -1252,9 +1256,9 @@ namespace Godot.Bridge
int length = defaultValues.Count;
// There's no recursion here, so it's ok to go with a big enough number for most cases
- // stackMaxSize = stackMaxLength * sizeof(godotsharp_property_def_val_pair)
- const int stackMaxLength = 32;
- bool useStack = length < stackMaxLength;
+ // StackMaxSize = StackMaxLength * sizeof(godotsharp_property_def_val_pair)
+ const int StackMaxLength = 32;
+ bool useStack = length < StackMaxLength;
godotsharp_property_def_val_pair* interopDefaultValues;
@@ -1262,7 +1266,7 @@ namespace Godot.Bridge
{
// Weird limitation, hence the need for aux:
// "In the case of pointer types, you can use a stackalloc expression only in a local variable declaration to initialize the variable."
- var aux = stackalloc godotsharp_property_def_val_pair[stackMaxLength];
+ var aux = stackalloc godotsharp_property_def_val_pair[StackMaxLength];
interopDefaultValues = aux;
}
else
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs
index c29a0f2bd8..f50540aa8b 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs
@@ -784,7 +784,7 @@ namespace Godot
name = name.Replace(".", string.Empty, StringComparison.Ordinal);
name = name.ToUpperInvariant();
- return Colors.namedColors.TryGetValue(name, out color);
+ return Colors.NamedColors.TryGetValue(name, out color);
}
/// <summary>
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Colors.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Colors.cs
index 44b1c2554c..5cb16fc385 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Colors.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Colors.cs
@@ -9,7 +9,7 @@ namespace Godot
public static class Colors
{
// Color names and values are derived from core/math/color_names.inc
- internal static readonly Dictionary<string, Color> namedColors = new Dictionary<string, Color> {
+ internal static readonly Dictionary<string, Color> NamedColors = new Dictionary<string, Color> {
{ "ALICEBLUE", Colors.AliceBlue },
{ "ANTIQUEWHITE", Colors.AntiqueWhite },
{ "AQUA", Colors.Aqua },
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/CustomGCHandle.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/CustomGCHandle.cs
index 42f19ace1a..28a4e1bc76 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/CustomGCHandle.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/CustomGCHandle.cs
@@ -26,7 +26,6 @@ public static class CustomGCHandle
[MethodImpl(MethodImplOptions.NoInlining)]
public static bool IsAlcBeingUnloaded(AssemblyLoadContext alc) => _alcsBeingUnloaded.TryGetValue(alc, out _);
- // ReSharper disable once RedundantNameQualifier
private static ConcurrentDictionary<
AssemblyLoadContext,
ConcurrentDictionary<GCHandle, object>
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/DebuggingUtils.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/DebuggingUtils.cs
index 57b292793a..0d96a9a5c1 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/DebuggingUtils.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/DebuggingUtils.cs
@@ -62,8 +62,9 @@ namespace Godot
Trace.Listeners.Add(new GodotTraceListener());
}
- [StructLayout(LayoutKind.Sequential)]
+#pragma warning disable IDE1006 // Naming rule violation
// ReSharper disable once InconsistentNaming
+ [StructLayout(LayoutKind.Sequential)]
internal ref struct godot_stack_info
{
public godot_string File;
@@ -71,8 +72,8 @@ namespace Godot
public int Line;
}
- [StructLayout(LayoutKind.Sequential)]
// ReSharper disable once InconsistentNaming
+ [StructLayout(LayoutKind.Sequential)]
internal ref struct godot_stack_info_vector
{
private IntPtr _writeProxy;
@@ -101,6 +102,7 @@ namespace Godot
_ptr = null;
}
}
+#pragma warning restore IDE1006
internal static unsafe StackFrame? GetCurrentStackFrame(int skipFrames = 0)
{
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/DelegateUtils.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/DelegateUtils.cs
index fc6e7a3ebe..c680142638 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/DelegateUtils.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/DelegateUtils.cs
@@ -141,7 +141,6 @@ namespace Godot
return true;
}
}
- // ReSharper disable once RedundantNameQualifier
case GodotObject godotObject:
{
using (var stream = new MemoryStream())
@@ -414,7 +413,6 @@ namespace Godot
case TargetKind.GodotObject:
{
ulong objectId = reader.ReadUInt64();
- // ReSharper disable once RedundantNameQualifier
GodotObject? godotObject = GodotObject.InstanceFromId(objectId);
if (godotObject == null)
return false;
@@ -495,7 +493,7 @@ namespace Godot
string methodName = reader.ReadString();
- int flags = reader.ReadInt32();
+ BindingFlags flags = (BindingFlags)reader.ReadInt32();
bool hasReturn = reader.ReadBoolean();
Type? returnType = hasReturn ? DeserializeType(reader) : typeof(void);
@@ -511,7 +509,11 @@ namespace Godot
parameterTypes[i] = parameterType;
}
- methodInfo = declaringType.GetMethod(methodName, (BindingFlags)flags, null, parameterTypes, null);
+#pragma warning disable REFL045 // These flags are insufficient to match any members
+ // TODO: Suppressing invalid warning, remove when issue is fixed
+ // https://github.com/DotNetAnalyzers/ReflectionAnalyzers/issues/209
+ methodInfo = declaringType.GetMethod(methodName, flags, null, parameterTypes, null);
+#pragma warning restore REFL045
return methodInfo != null && methodInfo.ReturnType == returnType;
}
@@ -588,7 +590,6 @@ namespace Godot
internal static class RuntimeTypeConversionHelper
{
- [SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static godot_variant ConvertToVariant(object? obj)
{
if (obj == null)
@@ -713,10 +714,8 @@ namespace Godot
private delegate object? ConvertToSystemObjectFunc(in godot_variant managed);
- [SuppressMessage("ReSharper", "RedundantNameQualifier")]
- // ReSharper disable once RedundantNameQualifier
private static readonly System.Collections.Generic.Dictionary<Type, ConvertToSystemObjectFunc>
- ToSystemObjectFuncByType = new()
+ _toSystemObjectFuncByType = new()
{
[typeof(bool)] = (in godot_variant variant) => VariantUtils.ConvertTo<bool>(variant),
[typeof(char)] = (in godot_variant variant) => VariantUtils.ConvertTo<char>(variant),
@@ -771,10 +770,9 @@ namespace Godot
[typeof(Variant)] = (in godot_variant variant) => VariantUtils.ConvertTo<Variant>(variant),
};
- [SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static object? ConvertToObjectOfType(in godot_variant variant, Type type)
{
- if (ToSystemObjectFuncByType.TryGetValue(type, out var func))
+ if (_toSystemObjectFuncByType.TryGetValue(type, out var func))
return func(variant);
if (typeof(GodotObject).IsAssignableFrom(type))
@@ -838,8 +836,7 @@ namespace Godot
if (genericTypeDef == typeof(Godot.Collections.Dictionary<,>))
{
- var ctor = type.GetConstructor(BindingFlags.Default,
- new[] { typeof(Godot.Collections.Dictionary) });
+ var ctor = type.GetConstructor(new[] { typeof(Godot.Collections.Dictionary) });
if (ctor == null)
throw new InvalidOperationException("Dictionary constructor not found");
@@ -852,8 +849,7 @@ namespace Godot
if (genericTypeDef == typeof(Godot.Collections.Array<>))
{
- var ctor = type.GetConstructor(BindingFlags.Default,
- new[] { typeof(Godot.Collections.Array) });
+ var ctor = type.GetConstructor(new[] { typeof(Godot.Collections.Array) });
if (ctor == null)
throw new InvalidOperationException("Array constructor not found");
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/DisposablesTracker.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/DisposablesTracker.cs
index 53292e10cf..0ae3e1e130 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/DisposablesTracker.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/DisposablesTracker.cs
@@ -59,7 +59,6 @@ namespace Godot
GD.Print("Unloading: Finished disposing tracked instances.");
}
- // ReSharper disable once RedundantNameQualifier
private static ConcurrentDictionary<WeakReference<GodotObject>, byte> GodotObjectInstances { get; } =
new();
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/GodotObject.base.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/GodotObject.base.cs
index 84b2a04276..0be9cdc953 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/GodotObject.base.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/GodotObject.base.cs
@@ -10,8 +10,8 @@ namespace Godot
{
public partial class GodotObject : IDisposable
{
- private bool _disposed = false;
- private static readonly Type CachedType = typeof(GodotObject);
+ private bool _disposed;
+ private static readonly Type _cachedType = typeof(GodotObject);
internal IntPtr NativePtr;
private bool _memoryOwn;
@@ -25,11 +25,11 @@ namespace Godot
{
unsafe
{
- _ConstructAndInitialize(NativeCtor, NativeName, CachedType, refCounted: false);
+ ConstructAndInitialize(NativeCtor, NativeName, _cachedType, refCounted: false);
}
}
- internal unsafe void _ConstructAndInitialize(
+ internal unsafe void ConstructAndInitialize(
delegate* unmanaged<IntPtr> nativeCtor,
StringName nativeName,
Type cachedType,
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs
index 09269508b7..16d4616fcd 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs
@@ -36,11 +36,11 @@ namespace Godot
public const real_t NaN = real_t.NaN;
// 0.0174532924f and 0.0174532925199433
- private const float _degToRadConstF = (float)0.0174532925199432957692369077M;
- private const double _degToRadConstD = (double)0.0174532925199432957692369077M;
+ private const float DegToRadConstF = (float)0.0174532925199432957692369077M;
+ private const double DegToRadConstD = (double)0.0174532925199432957692369077M;
// 57.29578f and 57.2957795130823
- private const float _radToDegConstF = (float)57.295779513082320876798154814M;
- private const double _radToDegConstD = (double)57.295779513082320876798154814M;
+ private const float RadToDegConstF = (float)57.295779513082320876798154814M;
+ private const double RadToDegConstD = (double)57.295779513082320876798154814M;
/// <summary>
/// Returns the absolute value of <paramref name="s"/> (i.e. positive value).
@@ -760,7 +760,7 @@ namespace Godot
/// <returns>The same angle expressed in radians.</returns>
public static float DegToRad(float deg)
{
- return deg * _degToRadConstF;
+ return deg * DegToRadConstF;
}
/// <summary>
@@ -770,7 +770,7 @@ namespace Godot
/// <returns>The same angle expressed in radians.</returns>
public static double DegToRad(double deg)
{
- return deg * _degToRadConstD;
+ return deg * DegToRadConstD;
}
/// <summary>
@@ -957,10 +957,10 @@ namespace Godot
return true;
}
// Then check for approximate equality.
- float tolerance = _epsilonF * Math.Abs(a);
- if (tolerance < _epsilonF)
+ float tolerance = EpsilonF * Math.Abs(a);
+ if (tolerance < EpsilonF)
{
- tolerance = _epsilonF;
+ tolerance = EpsilonF;
}
return Math.Abs(a - b) < tolerance;
}
@@ -981,10 +981,10 @@ namespace Godot
return true;
}
// Then check for approximate equality.
- double tolerance = _epsilonD * Math.Abs(a);
- if (tolerance < _epsilonD)
+ double tolerance = EpsilonD * Math.Abs(a);
+ if (tolerance < EpsilonD)
{
- tolerance = _epsilonD;
+ tolerance = EpsilonD;
}
return Math.Abs(a - b) < tolerance;
}
@@ -1069,7 +1069,7 @@ namespace Godot
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool IsZeroApprox(float s)
{
- return Math.Abs(s) < _epsilonF;
+ return Math.Abs(s) < EpsilonF;
}
/// <summary>
@@ -1084,7 +1084,7 @@ namespace Godot
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool IsZeroApprox(double s)
{
- return Math.Abs(s) < _epsilonD;
+ return Math.Abs(s) < EpsilonD;
}
/// <summary>
@@ -1412,7 +1412,7 @@ namespace Godot
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float RadToDeg(float rad)
{
- return rad * _radToDegConstF;
+ return rad * RadToDegConstF;
}
/// <summary>
@@ -1423,7 +1423,7 @@ namespace Godot
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static double RadToDeg(double rad)
{
- return rad * _radToDegConstD;
+ return rad * RadToDegConstD;
}
/// <summary>
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/MathfEx.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/MathfEx.cs
index cc2d61f58d..9020602cb4 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/MathfEx.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/MathfEx.cs
@@ -21,8 +21,8 @@ namespace Godot
public const real_t Sqrt2 = (real_t)1.4142135623730950488016887242M; // 1.4142136f and 1.414213562373095
// Epsilon size should depend on the precision used.
- private const float _epsilonF = 1e-06f;
- private const double _epsilonD = 1e-14;
+ private const float EpsilonF = 1e-06f;
+ private const double EpsilonD = 1e-14;
/// <summary>
/// A very small number used for float comparison with error tolerance.
@@ -31,7 +31,7 @@ namespace Godot
#if REAL_T_IS_DOUBLE
public const real_t Epsilon = _epsilonD;
#else
- public const real_t Epsilon = _epsilonF;
+ public const real_t Epsilon = EpsilonF;
#endif
/// <summary>
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs
index a8642a916c..a019dd3513 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs
@@ -1,3 +1,7 @@
+#pragma warning disable CA1707 // Identifiers should not contain underscores
+#pragma warning disable IDE1006 // Naming rule violation
+// ReSharper disable InconsistentNaming
+
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
@@ -24,7 +28,6 @@ namespace Godot.NativeInterop
}
// Apparently a struct with a byte is not blittable? It crashes when calling a UnmanagedCallersOnly function ptr.
- // ReSharper disable once InconsistentNaming
public enum godot_bool : byte
{
True = 1,
@@ -32,7 +35,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_ref
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -62,7 +64,6 @@ namespace Godot.NativeInterop
}
}
- [SuppressMessage("ReSharper", "InconsistentNaming")]
public enum godot_variant_call_error_error
{
GODOT_CALL_ERROR_CALL_OK = 0,
@@ -75,7 +76,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_variant_call_error
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -106,7 +106,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_csharp_type_info
{
private godot_string _className;
@@ -161,7 +160,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential, Pack = 8)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_variant
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -176,7 +174,6 @@ namespace Godot.NativeInterop
private godot_variant_data _data;
[StructLayout(LayoutKind.Explicit)]
- // ReSharper disable once InconsistentNaming
private unsafe ref struct godot_variant_data
{
[FieldOffset(0)] public godot_bool _bool;
@@ -212,7 +209,6 @@ namespace Godot.NativeInterop
[FieldOffset(0)] public godot_array _m_array;
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public struct godot_variant_obj_data
{
public ulong id;
@@ -220,7 +216,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public struct godot_variant_data_mem
{
#pragma warning disable 169
@@ -480,7 +475,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Explicit)]
- // ReSharper disable once InconsistentNaming
internal struct movable
{
// Variant.Type is generated as an enum of type long, so we can't use for the field as it must only take 32-bits.
@@ -502,7 +496,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_string
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -534,7 +527,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_string_name
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -590,7 +582,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
internal struct movable
{
private IntPtr _data;
@@ -607,7 +598,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_node_path
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -638,7 +628,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
internal struct movable
{
private IntPtr _data;
@@ -655,7 +644,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Explicit)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_signal
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -698,7 +686,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Explicit)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_callable
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -736,7 +723,6 @@ namespace Godot.NativeInterop
// Don't pass a C# default constructed `godot_array` to native code, unless it's going to
// be re-assigned a new value (the copy constructor checks if `_p` is null so that's fine).
[StructLayout(LayoutKind.Explicit)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -817,7 +803,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
internal struct movable
{
private unsafe ArrayPrivate* _p;
@@ -838,7 +823,6 @@ namespace Godot.NativeInterop
// Don't pass a C# default constructed `godot_dictionary` to native code, unless it's going to
// be re-assigned a new value (the copy constructor checks if `_p` is null so that's fine).
[StructLayout(LayoutKind.Explicit)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_dictionary
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -886,7 +870,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
internal struct movable
{
private unsafe DictionaryPrivate* _p;
@@ -903,7 +886,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_byte_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -935,7 +917,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_int32_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -967,7 +948,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_int64_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -999,7 +979,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_float32_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1031,7 +1010,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_float64_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1063,7 +1041,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_string_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1095,7 +1072,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_vector2_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1127,7 +1103,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_vector3_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1159,7 +1134,6 @@ namespace Godot.NativeInterop
}
[StructLayout(LayoutKind.Sequential)]
- // ReSharper disable once InconsistentNaming
public ref struct godot_packed_color_array
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1190,7 +1164,6 @@ namespace Godot.NativeInterop
}
}
- [SuppressMessage("ReSharper", "InconsistentNaming")]
public enum godot_error_handler_type
{
ERR_HANDLER_ERROR = 0,
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/Marshaling.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/Marshaling.cs
index 0cc89d78af..9f7fa53e24 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/Marshaling.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/Marshaling.cs
@@ -1,3 +1,5 @@
+#pragma warning disable CA1707 // Identifiers should not contain underscores
+
using System;
using System.Runtime.InteropServices;
using Godot.Collections;
@@ -213,13 +215,13 @@ namespace Godot.NativeInterop
if (p_string.Buffer == IntPtr.Zero)
return string.Empty;
- const int sizeOfChar32 = 4;
+ const int SizeOfChar32 = 4;
byte* bytes = (byte*)p_string.Buffer;
int size = p_string.Size;
if (size == 0)
return string.Empty;
size -= 1; // zero at the end
- int sizeInBytes = size * sizeOfChar32;
+ int sizeInBytes = size * SizeOfChar32;
return System.Text.Encoding.UTF32.GetString(bytes, sizeInBytes);
}
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.cs
index d181bf2c0f..fef21fae46 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.cs
@@ -1,9 +1,11 @@
+#pragma warning disable CA1707 // Identifiers should not contain underscores
+#pragma warning disable IDE1006 // Naming rule violation
+// ReSharper disable InconsistentNaming
+
using System;
-using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using Godot.SourceGenerators.Internal;
-// ReSharper disable InconsistentNaming
namespace Godot.NativeInterop
{
@@ -16,7 +18,7 @@ namespace Godot.NativeInterop
[GenerateUnmanagedCallbacks(typeof(UnmanagedCallbacks))]
public static unsafe partial class NativeFuncs
{
- private static bool initialized = false;
+ private static bool initialized;
// ReSharper disable once ParameterOnlyUsedForPreconditionCheck.Global
public static void Initialize(IntPtr unmanagedCallbacks, int unmanagedCallbacksSize)
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.extended.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.extended.cs
index 44ec16dca9..9f237e4d00 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.extended.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/NativeFuncs.extended.cs
@@ -1,3 +1,5 @@
+#pragma warning disable CA1707 // Identifiers should not contain underscores
+#pragma warning disable IDE1006 // Naming rule violation
// ReSharper disable InconsistentNaming
namespace Godot.NativeInterop
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs
index e6bcd9393d..464b517428 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs
@@ -1,8 +1,11 @@
+#pragma warning disable CA1707 // Identifiers should not contain underscores
+#pragma warning disable IDE1006 // Naming rule violation
+// ReSharper disable InconsistentNaming
+
using System;
using System.Runtime.CompilerServices;
using Godot.Collections;
-// ReSharper disable InconsistentNaming
#nullable enable
@@ -240,7 +243,6 @@ namespace Godot.NativeInterop
public static godot_variant CreateFromSystemArrayOfRid(Span<Rid> from)
=> CreateFromArray(new Collections.Array(from));
- // ReSharper disable once RedundantNameQualifier
public static godot_variant CreateFromSystemArrayOfGodotObject(GodotObject[]? from)
{
if (from == null)
@@ -306,7 +308,6 @@ namespace Godot.NativeInterop
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- // ReSharper disable once RedundantNameQualifier
public static godot_variant CreateFromGodotObject(GodotObject? from)
=> from != null ? CreateFromGodotObjectPtr(GodotObject.GetPtr(from)) : default;
@@ -459,7 +460,6 @@ namespace Godot.NativeInterop
=> p_var.Type == Variant.Type.Object ? p_var.Object : IntPtr.Zero;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- // ReSharper disable once RedundantNameQualifier
public static GodotObject ConvertToGodotObject(in godot_variant p_var)
=> InteropUtils.UnmanagedGetManaged(ConvertToGodotObjectPtr(p_var));
@@ -615,7 +615,6 @@ namespace Godot.NativeInterop
}
public static T[] ConvertToSystemArrayOfGodotObject<T>(in godot_variant p_var)
- // ReSharper disable once RedundantNameQualifier
where T : GodotObject
{
using var godotArray = NativeFuncs.godotsharp_variant_as_array(p_var);
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs
index 12b0a47079..d8f7214c2f 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs
@@ -1,5 +1,4 @@
using System;
-using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
namespace Godot.NativeInterop;
@@ -25,7 +24,6 @@ public partial class VariantUtils
// ReSharper disable once StaticMemberInGenericType
internal static unsafe delegate*<in godot_variant, T> FromVariantCb;
- [SuppressMessage("ReSharper", "RedundantNameQualifier")]
static GenericConversion()
{
RuntimeHelpers.RunClassConstructor(typeof(T).TypeHandle);
@@ -33,7 +31,6 @@ public partial class VariantUtils
}
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
- [SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static godot_variant CreateFrom<[MustBeVariant] T>(in T from)
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -224,7 +221,6 @@ public partial class VariantUtils
}
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
- [SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static T ConvertTo<[MustBeVariant] T>(in godot_variant variant)
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs
index 2aac23d799..c0889fb0e8 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs
@@ -251,10 +251,10 @@ namespace Godot
/// <param name="right">The right clipping distance.</param>
/// <param name="bottom">The bottom clipping distance.</param>
/// <param name="top">The top clipping distance.</param>
- /// <param name="near">The near clipping distance.</param>
- /// <param name="far">The far clipping distance.</param>
+ /// <param name="depthNear">The near clipping distance.</param>
+ /// <param name="depthFar">The far clipping distance.</param>
/// <returns>The created projection.</returns>
- public static Projection CreateFrustum(real_t left, real_t right, real_t bottom, real_t top, real_t depth_near, real_t depth_far)
+ public static Projection CreateFrustum(real_t left, real_t right, real_t bottom, real_t top, real_t depthNear, real_t depthFar)
{
if (right <= left)
{
@@ -264,18 +264,18 @@ namespace Godot
{
throw new ArgumentException("top is less or equal to bottom.");
}
- if (depth_far <= depth_near)
+ if (depthFar <= depthNear)
{
throw new ArgumentException("far is less or equal to near.");
}
- real_t x = 2 * depth_near / (right - left);
- real_t y = 2 * depth_near / (top - bottom);
+ real_t x = 2 * depthNear / (right - left);
+ real_t y = 2 * depthNear / (top - bottom);
real_t a = (right + left) / (right - left);
real_t b = (top + bottom) / (top - bottom);
- real_t c = -(depth_far + depth_near) / (depth_far - depth_near);
- real_t d = -2 * depth_far * depth_near / (depth_far - depth_near);
+ real_t c = -(depthFar + depthNear) / (depthFar - depthNear);
+ real_t d = -2 * depthFar * depthNear / (depthFar - depthNear);
return new Projection(
new Vector4(x, 0, 0, 0),
@@ -293,17 +293,17 @@ namespace Godot
/// <param name="size">The frustum size.</param>
/// <param name="aspect">The aspect ratio.</param>
/// <param name="offset">The offset to apply.</param>
- /// <param name="near">The near clipping distance.</param>
- /// <param name="far">The far clipping distance.</param>
+ /// <param name="depthNear">The near clipping distance.</param>
+ /// <param name="depthFar">The far clipping distance.</param>
/// <param name="flipFov">If the field of view is flipped over the projection's diagonal.</param>
/// <returns>The created projection.</returns>
- public static Projection CreateFrustumAspect(real_t size, real_t aspect, Vector2 offset, real_t depth_near, real_t depth_far, bool flipFov)
+ public static Projection CreateFrustumAspect(real_t size, real_t aspect, Vector2 offset, real_t depthNear, real_t depthFar, bool flipFov)
{
if (!flipFov)
{
size *= aspect;
}
- return CreateFrustum(-size / 2 + offset.X, +size / 2 + offset.X, -size / aspect / 2 + offset.Y, +size / aspect / 2 + offset.Y, depth_near, depth_far);
+ return CreateFrustum(-size / 2 + offset.X, +size / 2 + offset.X, -size / aspect / 2 + offset.Y, +size / aspect / 2 + offset.Y, depthNear, depthFar);
}
/// <summary>
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
index f249bac69c..9cd5498fa8 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
@@ -1836,8 +1836,8 @@ namespace Godot
return Uri.EscapeDataString(instance);
}
- private const string _uniqueNodePrefix = "%";
- private static readonly string[] _invalidNodeNameCharacters = { ".", ":", "@", "/", "\"", _uniqueNodePrefix };
+ private const string UniqueNodePrefix = "%";
+ private static readonly string[] _invalidNodeNameCharacters = { ".", ":", "@", "/", "\"", UniqueNodePrefix };
/// <summary>
/// Removes any characters from the string that are prohibited in
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs
index 9aad965ad0..036a26328a 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs
@@ -1,5 +1,4 @@
using System;
-using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using Godot.NativeInterop;
@@ -7,7 +6,6 @@ namespace Godot;
#nullable enable
-[SuppressMessage("ReSharper", "RedundantNameQualifier")]
public partial struct Variant : IDisposable
{
internal godot_variant.movable NativeVar;
diff --git a/modules/mono/glue/GodotSharp/GodotSharpEditor/Compat.cs b/modules/mono/glue/GodotSharp/GodotSharpEditor/Compat.cs
index 7a3bb0df7e..d1289ee6ba 100644
--- a/modules/mono/glue/GodotSharp/GodotSharpEditor/Compat.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharpEditor/Compat.cs
@@ -7,6 +7,9 @@ using System.ComponentModel;
namespace Godot;
+// TODO: This is currently disabled because of https://github.com/dotnet/roslyn/issues/52904
+#pragma warning disable IDE0040 // Add accessibility modifiers.
+
partial class EditorUndoRedoManager
{
/// <inheritdoc cref="CreateAction(string, UndoRedo.MergeMode, GodotObject, bool)"/>