summaryrefslogtreecommitdiffstats
path: root/test/src/example.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/example.h')
-rw-r--r--test/src/example.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/src/example.h b/test/src/example.h
index e354e4f..c181f0d 100644
--- a/test/src/example.h
+++ b/test/src/example.h
@@ -25,12 +25,20 @@ using namespace godot;
class ExampleRef : public RefCounted {
GDCLASS(ExampleRef, RefCounted);
+private:
+ static int instance_count;
+ static int last_id;
+
+ int id;
+
protected:
- static void _bind_methods() {}
+ static void _bind_methods();
public:
ExampleRef();
~ExampleRef();
+
+ int get_id();
};
class ExampleMin : public Control {
@@ -79,6 +87,7 @@ public:
void simple_const_func() const;
String return_something(const String &base);
Viewport *return_something_const() const;
+ Ref<ExampleRef> return_empty_ref() const;
ExampleRef *return_extended_ref() const;
Ref<ExampleRef> extended_ref_checks(Ref<ExampleRef> p_ref) const;
Variant varargs_func(const Variant **args, GDExtensionInt arg_count, GDExtensionCallError &error);