Implemented using api struct

This commit is contained in:
Bastiaan Olij
2017-10-21 10:42:10 +11:00
parent f24ecfc74d
commit 6452ba6e88
22 changed files with 380 additions and 403 deletions

View File

@@ -2,6 +2,7 @@
#define REF_H
#include "Variant.hpp"
#include "GodotGlobal.hpp"
namespace godot {
@@ -156,7 +157,7 @@ public:
void unref()
{
if (reference && reference->unreference()) {
godot_object_destroy((godot_object *) reference);
godot::api->godot_object_destroy((godot_object *) reference);
}
reference = nullptr;
}