diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2017-09-05 11:47:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 11:47:51 +0200 |
commit | dcdde2f5a9bdb74308c5316affad5af4a3bc2fdb (patch) | |
tree | c6330d01dbd935bb8af3e8971c9b1d43f8627382 /modules/gdnative/nativescript/nativescript.h | |
parent | 9b9344cab1a01358e5ebdc7efab1c00472b7bf2f (diff) | |
parent | 269203a02261d53eb87817c8692bc56f0cf4e3dd (diff) |
Merge pull request #10993 from endragor/nativescript-property-order
Provide NativeScript properties in definition order
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.h')
-rw-r--r-- | modules/gdnative/nativescript/nativescript.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdnative/nativescript/nativescript.h b/modules/gdnative/nativescript/nativescript.h index 6c55e3e327..bc7e850d3e 100644 --- a/modules/gdnative/nativescript/nativescript.h +++ b/modules/gdnative/nativescript/nativescript.h @@ -32,6 +32,7 @@ #include "io/resource_loader.h" #include "io/resource_saver.h" +#include "ordered_hash_map.h" #include "os/thread_safe.h" #include "resource.h" #include "scene/main/node.h" @@ -65,7 +66,7 @@ struct NativeScriptDesc { }; Map<StringName, Method> methods; - Map<StringName, Property> properties; + OrderedHashMap<StringName, Property> properties; Map<StringName, Signal> signals_; // QtCreator doesn't like the name signals StringName base; StringName base_native_type; |