virtualx-engine/modules/mono/editor
Ignacio Roldán Etcheverry 17b2838f39 C#: Cleanup Variant marshaling code in source/bindings generators
This change aims to reduce the number of places that need to be changed
when adding or editing a Godot type to the bindings.

Since the addition of `Variant.From<T>/As<T>` and
`VariantUtils.CreateFrom<T>/ConvertTo<T>`, we can now replace a lot of
the previous code in the bindings generator and the source generators
that specify these conversions for each type manually.

The only exceptions are the generic Godot collections (`Array<T>` and
`Dictionary<TKey, TValue>`) which still use the old version, as that
one cannot be matched by our new conversion methods (limitation in the
language with generics, forcing us to use delegate pointers).

The cleanup applies to:

- Bindings generator:
  - `TypeInterface.cs_variant_to_managed`
  - `TypeInterface.cs_managed_to_variant`
- Source generators:
  - `MarshalUtils.AppendNativeVariantToManagedExpr`
  - `MarshalUtils.AppendManagedToNativeVariantExpr`
  - `MarshalUtils.AppendVariantToManagedExpr`
  - `MarshalUtils.AppendManagedToVariantExpr`
2022-12-02 14:47:12 +01:00
..
Godot.NET.Sdk C#: Cleanup Variant marshaling code in source/bindings generators 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#: Cleanup Variant marshaling code in source/bindings generators 2022-12-02 14:47:12 +01:00
bindings_generator.h C#: Cleanup Variant marshaling code in source/bindings generators 2022-12-02 14:47:12 +01: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