aboutsummaryrefslogtreecommitdiff
path: root/modules/gdnative/gdnative.cpp
diff options
context:
space:
mode:
authorKarroffel2017-09-03 14:50:33 +0200
committerKarroffel2017-09-03 16:56:00 +0200
commit54a9c1ee43673803e8992ebdcb9e8fca3c367487 (patch)
tree25b197d74f4b2b0cf54d540500e7428f71191ec8 /modules/gdnative/gdnative.cpp
parent7878329e6fc828dc7ca0a8300ebdbaa0674a769c (diff)
downloadgodot-54a9c1ee43673803e8992ebdcb9e8fca3c367487.tar.gz
godot-54a9c1ee43673803e8992ebdcb9e8fca3c367487.tar.zst
godot-54a9c1ee43673803e8992ebdcb9e8fca3c367487.zip
Diffstat (limited to 'modules/gdnative/gdnative.cpp')
-rw-r--r--modules/gdnative/gdnative.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp
index ded987557..6da538844 100644
--- a/modules/gdnative/gdnative.cpp
+++ b/modules/gdnative/gdnative.cpp
@@ -100,6 +100,11 @@ GDNativeLibrary::~GDNativeLibrary() {
void GDNativeLibrary::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_library_path", "platform", "path"), &GDNativeLibrary::set_library_path);
ClassDB::bind_method(D_METHOD("get_library_path", "platform"), &GDNativeLibrary::get_library_path);
+
+ ClassDB::bind_method(D_METHOD("is_singleton_gdnative"), &GDNativeLibrary::is_singleton_gdnative);
+ ClassDB::bind_method(D_METHOD("set_singleton_gdnative", "singleton"), &GDNativeLibrary::set_singleton_gdnative);
+
+ ADD_PROPERTYNZ(PropertyInfo(Variant::BOOL, "singleton_gdnative"), "set_singleton_gdnative", "is_singleton_gdnative");
}
bool GDNativeLibrary::_set(const StringName &p_name, const Variant &p_value) {
@@ -175,7 +180,6 @@ GDNative::GDNative() {
}
GDNative::~GDNative() {
- // TODO(karroffel): implement ALL the things!
}
extern "C" void _api_anchor();