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