aboutsummaryrefslogtreecommitdiff
path: root/modules/gdnative/gdnative.h
diff options
context:
space:
mode:
authorkarroffel2018-01-06 12:31:30 +0100
committerkarroffel2018-01-06 12:31:30 +0100
commit34cdcf5cd0b4ea087b62ecae71c2ac86e06220a9 (patch)
treec60590845788f9adcc39bac7cabd68089cea538f /modules/gdnative/gdnative.h
parent0e6e98a65f26c915b5717992ba881cf33406c8bf (diff)
downloadgodot-34cdcf5cd0b4ea087b62ecae71c2ac86e06220a9.tar.gz
godot-34cdcf5cd0b4ea087b62ecae71c2ac86e06220a9.tar.zst
godot-34cdcf5cd0b4ea087b62ecae71c2ac86e06220a9.zip
[GDNative] added reload property
Diffstat (limited to '')
-rw-r--r--modules/gdnative/gdnative.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative.h b/modules/gdnative/gdnative.h
index 5fe705869..3298ea950 100644
--- a/modules/gdnative/gdnative.h
+++ b/modules/gdnative/gdnative.h
@@ -60,6 +60,7 @@ class GDNativeLibrary : public Resource {
bool singleton;
bool load_once;
String symbol_prefix;
+ bool reloadable;
public:
GDNativeLibrary();
@@ -87,6 +88,10 @@ public:
return symbol_prefix;
}
+ _FORCE_INLINE_ bool is_reloadable() const {
+ return reloadable;
+ }
+
_FORCE_INLINE_ void set_load_once(bool p_load_once) {
load_once = p_load_once;
}
@@ -97,6 +102,10 @@ public:
symbol_prefix = p_symbol_prefix;
}
+ _FORCE_INLINE_ void set_reloadable(bool p_reloadable) {
+ reloadable = p_reloadable;
+ }
+
static void _bind_methods();
};