Add a child timer node

This commit is contained in:
Marek S. Łukasiewicz 2025-01-28 16:43:08 +01:00
parent d2f4e02361
commit 7890c90380
6 changed files with 41 additions and 5 deletions

View file

@ -1,7 +1,8 @@
#ifndef MARSHCONNECTOR_H
#define MARSHCONNECTOR_H
#include <godot_cpp/classes/node.hpp>
#include "godot_cpp/classes/node.hpp"
#include "godot_cpp/classes/timer.hpp"
namespace godot {
@ -10,6 +11,7 @@ class MarshConnector : public Node {
private:
double time_passed;
Timer *heartbeat_timer;
protected:
static void _bind_methods();
@ -19,6 +21,8 @@ public:
~MarshConnector();
void _process(double delta) override;
void send_heartbeat();
};
} // namespace godot