Allow registering "runtime classes"

This commit is contained in:
David Snopek
2023-09-29 16:30:59 -05:00
parent 5fcc43e54d
commit fb884573ea
7 changed files with 104 additions and 9 deletions

View File

@@ -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