Merge pull request from dzil123/v3_fix_array_shuffle

[3.x] Fix Array.Shuffle incorrect mono bindings
This commit is contained in:
Rémi Verschelde 2022-11-09 13:14:38 +01:00
commit 09b4c69403
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 3 additions and 1 deletions
modules/mono/glue
GodotSharp/GodotSharp/Core
collections_glue.h

View file

@ -326,7 +326,7 @@ namespace Godot.Collections
internal static extern Error godot_icall_Array_Resize(IntPtr ptr, int newSize);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern Error godot_icall_Array_Shuffle(IntPtr ptr);
internal static extern void godot_icall_Array_Shuffle(IntPtr ptr);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern void godot_icall_Array_Generic_GetElementTypeInfo(Type elemType, out int elemTypeEncoding, out IntPtr elemTypeClass);

View file

@ -71,6 +71,8 @@ void godot_icall_Array_RemoveAt(Array *ptr, int index);
int32_t godot_icall_Array_Resize(Array *ptr, int new_size);
void godot_icall_Array_Shuffle(Array *ptr);
void godot_icall_Array_Generic_GetElementTypeInfo(MonoReflectionType *refltype, uint32_t *type_encoding, GDMonoClass **type_class);
MonoString *godot_icall_Array_ToString(Array *ptr);