-
Notifications
You must be signed in to change notification settings - Fork 11
/
main.hpp
36 lines (28 loc) · 782 Bytes
/
main.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <godot_cpp/classes/canvas_layer.hpp>
#include <godot_cpp/classes/node.hpp>
#include "entity/level.hpp"
#include "ui/main_dialog.hpp"
namespace rl
{
class Main : public godot::Node
{
GDCLASS(Main, godot::Node);
public:
Main();
~Main() = default;
void _ready() override;
void _physics_process(double delta) override;
protected:
void apply_default_settings();
static void _bind_methods()
{
signal_binding<Main, event::signal_example>::add<double>();
}
private:
double m_signal_timer{ 0.0 };
godot::CanvasLayer* m_canvas_layer{ nullptr };
MainDialog* m_main_dialog{ nullptr };
Level* m_active_level{ nullptr };
};
}