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.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/src/example.h b/test/src/example.h
index 7da7b08..c66ee96 100644
--- a/test/src/example.h
+++ b/test/src/example.h
@@ -220,6 +220,31 @@ protected:
virtual int test_function() override { return 25; }
};
+class ExampleBase : public Node {
+ GDCLASS(ExampleBase, Node);
+
+protected:
+ int value1 = 0;
+ int value2 = 0;
+
+ static void _bind_methods();
+
+ void _notification(int p_what);
+
+public:
+ int get_value1() { return value1; }
+ int get_value2() { return value2; }
+};
+
+class ExampleChild : public ExampleBase {
+ GDCLASS(ExampleChild, ExampleBase);
+
+protected:
+ static void _bind_methods() {}
+
+ void _notification(int p_what);
+};
+
class ExampleRuntime : public Node {
GDCLASS(ExampleRuntime, Node);