aboutsummaryrefslogtreecommitdiff
path: root/extension/src/TestSingleton.hpp
blob: de27589a389a67f6f3e52cf5d5318299da78daad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <godot_cpp/classes/object.hpp>
#include <godot_cpp/core/class_db.hpp>

namespace OpenVic2 {
   class TestSingleton : public godot::Object
   {
      GDCLASS(TestSingleton, godot::Object)

      static TestSingleton *singleton;

   protected:
      static void _bind_methods();

   public:
      static TestSingleton *get_singleton();

      TestSingleton();
      ~TestSingleton();

      void hello_singleton();
   };
}