diff options
author | Raul Santos <raulsntos@gmail.com> | 2022-09-01 00:40:59 +0200 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2022-09-01 10:29:52 +0200 |
commit | 9a10701c69f073d3d52764c54a1d008475683858 (patch) | |
tree | 0374c1cb576b7beeeb45ad40b52ce881bf4e6210 /modules/mono/editor/bindings_generator.h | |
parent | a5db03efa724b8910281d73576d31cc662b8cc13 (diff) |
C#: Assume 64-bit types when type has no meta
When the C# bindings generator finds a type without meta assume the type
refers to the 64-bit version of the type:
- `float` is converted to `double`
- `int` is converted to `long`
Diffstat (limited to 'modules/mono/editor/bindings_generator.h')
-rw-r--r-- | modules/mono/editor/bindings_generator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/mono/editor/bindings_generator.h b/modules/mono/editor/bindings_generator.h index c1295385dc..a479c44368 100644 --- a/modules/mono/editor/bindings_generator.h +++ b/modules/mono/editor/bindings_generator.h @@ -703,6 +703,7 @@ class BindingsGenerator { const String _get_generic_type_parameters(const TypeInterface &p_itype, const List<TypeReference> &p_generic_type_parameters); + StringName _get_type_name_from_meta(Variant::Type p_type, GodotTypeInfo::Metadata p_meta); StringName _get_int_type_name_from_meta(GodotTypeInfo::Metadata p_meta); StringName _get_float_type_name_from_meta(GodotTypeInfo::Metadata p_meta); |