diff --git a/src/my_node.cpp b/src/my_node.cpp index 4f4da07..ce88dd7 100644 --- a/src/my_node.cpp +++ b/src/my_node.cpp @@ -18,6 +18,16 @@ MyNode::~MyNode() { } +// Override built-in methods with your own logic. Make sure to declare them in the header as well! + +void MyNode::_ready() +{ +} + +void MyNode::_process(double delta) +{ +} + void MyNode::hello_node() { UtilityFunctions::print("Hello GDExtension Node!"); diff --git a/src/my_node.hpp b/src/my_node.hpp index 253e554..9054ce1 100644 --- a/src/my_node.hpp +++ b/src/my_node.hpp @@ -15,5 +15,8 @@ public: MyNode(); ~MyNode(); + void _ready() override; + void _process(double delta) override; + void hello_node(); };