diff options
| author | David Snopek <dsnopek@gmail.com> | 2023-09-29 16:30:59 -0500 |
|---|---|---|
| committer | David Snopek <dsnopek@gmail.com> | 2024-02-13 08:55:25 -0600 |
| commit | fb884573ea1a0ec36d1968bf12a667cd17023d38 (patch) | |
| tree | d503826de04201dff7da6984cd7bd0ce8a74bcd3 /test/src/example.h | |
| parent | 5fcc43e54d68c45e7875a189e476c5fe7e14237d (diff) | |
| download | redot-cpp-fb884573ea1a0ec36d1968bf12a667cd17023d38.tar.gz | |
Allow registering "runtime classes"
Diffstat (limited to 'test/src/example.h')
| -rw-r--r-- | test/src/example.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/src/example.h b/test/src/example.h index 1c57720..7da7b08 100644 --- a/test/src/example.h +++ b/test/src/example.h @@ -220,4 +220,20 @@ protected: virtual int test_function() override { return 25; } }; +class ExampleRuntime : public Node { + GDCLASS(ExampleRuntime, Node); + + int prop_value = 12; + +protected: + static void _bind_methods(); + +public: + void set_prop_value(int p_prop_value); + int get_prop_value() const; + + ExampleRuntime(); + ~ExampleRuntime(); +}; + #endif // EXAMPLE_CLASS_H |
