diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-03-04 21:31:04 +0100 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-04-06 11:00:40 +0200 |
commit | 92b02cb027a5f87b7ebe069ed1ba7648b6db19bd (patch) | |
tree | 16e29e0f9f4f2df8073437c5d1ff462549b66e3d /modules/mono/glue/collections_glue.cpp | |
parent | 506ff1f065936153efef0ace24e0d922b999b9e6 (diff) |
C#: Some important Array and Dictionary interface changes
Array now implements IList instead of IList<object, object>.
Dictionary now implements IDictionary instead of IDictionary<object, object>.
Diffstat (limited to 'modules/mono/glue/collections_glue.cpp')
-rw-r--r-- | modules/mono/glue/collections_glue.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mono/glue/collections_glue.cpp b/modules/mono/glue/collections_glue.cpp index 1aad1c53bc..84c3f354d8 100644 --- a/modules/mono/glue/collections_glue.cpp +++ b/modules/mono/glue/collections_glue.cpp @@ -73,8 +73,9 @@ int godot_icall_Array_Count(Array *ptr) { return ptr->size(); } -void godot_icall_Array_Add(Array *ptr, MonoObject *item) { +int godot_icall_Array_Add(Array *ptr, MonoObject *item) { ptr->append(GDMonoMarshal::mono_object_to_variant(item)); + return ptr->size(); } void godot_icall_Array_Clear(Array *ptr) { |