virtualx-engine/modules/mono/editor
Ignacio Roldán Etcheverry f86c6b6ac4 C#: Replace most conversions between Variant and System.Object
This commit replaces most usages of `ConvertManagedObjectToVariant` and
`ConvertVariantToManagedObjectOfType`, by using the `Godot.Variant`
struct instead of `System.Object`.

The most notable change is to the `GetGodotPropertyDefaultValues` method
that's generated for scripts. The dictionary it returns now stores
`Godot.Variant` values.

Remaining usages are:

- The `DelegateUtils` class, for the serialization of closure display
  classes during assembly reloading by the editor. These display classes
  are compiler generated classes to store values captured by a closure.
  Since it's generated by the compiler, the only way we have to access
  the fields is through reflection. This leads to using `System.Object`.
- Converting parameters when invoking constructors from the engine.
  This will be replaced with source generators in the future.
- Legacy support for old `GetGodotPropertyDefaultValues` return values.
  We need to keep supporting the old version of this generated method
  for some time. Otherwise, if loading a project built with the previous
  version, it could lead to the loss of exported property values.
  Ideally, we should remove this legacy support before a stable release.
2022-12-02 14:47:12 +01:00
..
Godot.NET.Sdk C#: Replace most conversions between Variant and System.Object 2022-12-02 14:47:12 +01:00
GodotTools C#: Replace most conversions between Variant and System.Object 2022-12-02 14:47:12 +01:00
script_templates C#: Assume 64-bit types when type has no meta 2022-09-01 10:29:52 +02:00
bindings_generator.cpp C#: Remove VariantSpanDisposer and use constants in stackalloc 2022-11-27 03:04:34 +01:00
bindings_generator.h C#: Assume 64-bit types when type has no meta 2022-09-01 10:29:52 +02:00
code_completion.cpp Unify usage of GLOBAL/EDITOR_GET 2022-10-18 19:01:48 +02:00
code_completion.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
editor_internal_calls.cpp Port remaining connections to callable_mp 2022-09-18 13:08:54 +02:00
editor_internal_calls.h C#: Replace P/Invoke with delegate pointers 2022-08-22 03:36:52 +02:00
hostfxr_resolver.cpp Fix MacOS compiler flags in .NET module 2022-09-08 23:29:01 +02:00
hostfxr_resolver.h C#: Replace libnethost dependency to find hostfxr 2022-09-07 16:36:36 +02:00
semver.cpp C#: Replace libnethost dependency to find hostfxr 2022-09-07 16:36:36 +02:00
semver.h C#: Replace libnethost dependency to find hostfxr 2022-09-07 16:36:36 +02:00