summaryrefslogtreecommitdiffstats
path: root/test/src/example.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-09-24 17:11:50 +0200
committerBastiaan Olij <mux213@gmail.com>2021-09-27 23:08:12 +1000
commit59d38a4119471cd68db70ece12d5dd43f4b6e026 (patch)
treecc01db88d7625df0a0cd5246887fa8171d2a8913 /test/src/example.h
parent42dd64f22fc0cddaec4d2ba57640fa3adaae8823 (diff)
downloadredot-cpp-59d38a4119471cd68db70ece12d5dd43f4b6e026.tar.gz
Add test for extended object creation/deletion.
Diffstat (limited to 'test/src/example.h')
-rw-r--r--test/src/example.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/src/example.h b/test/src/example.h
index 6db6f9b..e72051b 100644
--- a/test/src/example.h
+++ b/test/src/example.h
@@ -39,6 +39,17 @@
using namespace godot;
+class ExampleRef : public RefCounted {
+ GDCLASS(ExampleRef, RefCounted);
+
+protected:
+ static void _bind_methods() {}
+
+public:
+ ExampleRef();
+ ~ExampleRef();
+};
+
class Example : public Control {
GDCLASS(Example, Control);
@@ -64,6 +75,7 @@ public:
void simple_const_func() const;
String return_something(const String &base);
Viewport *return_something_const() const;
+ ExampleRef *return_extended_ref() const;
Variant varargs_func(const Variant **args, GDNativeInt arg_count, GDNativeCallError &error);
void emit_custom_signal(const String &name, int value);