aboutsummaryrefslogtreecommitdiff
path: root/extension/src/TestSingleton.hpp
blob: d1405160457113acad518365aae8f7a96c5fa194 (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();
   };
}