summaryrefslogtreecommitdiffstats
path: root/modules/gdnative/nativescript/nativescript.h
diff options
context:
space:
mode:
authorRuslan Mustakov <r.mustakov@gmail.com>2017-08-13 15:37:56 +0700
committerRuslan Mustakov <r.mustakov@gmail.com>2017-09-05 12:45:23 +0700
commit269203a02261d53eb87817c8692bc56f0cf4e3dd (patch)
treeba40669b6dffdefba0d37323e1b5f6118233f1ae /modules/gdnative/nativescript/nativescript.h
parente611ff5f0110210221a6f90250bdd65f5fb3ff2d (diff)
downloadredot-engine-269203a02261d53eb87817c8692bc56f0cf4e3dd.tar.gz
Provide NativeScript properties in definition order
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.h')
-rw-r--r--modules/gdnative/nativescript/nativescript.h3
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;