Add a child timer node
This commit is contained in:
parent
d2f4e02361
commit
7890c90380
6 changed files with 41 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue