You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
370 B
C++

4 years ago
#pragma once
#include <godot_cpp/classes/object.hpp>
#include <godot_cpp/core/class_db.hpp>
4 years ago
using namespace godot;
class MySingleton : public Object
4 years ago
{
GDCLASS(MySingleton, Object);
4 years ago
static MySingleton *singleton;
4 years ago
protected:
static void _bind_methods();
public:
static MySingleton *get_singleton();
MySingleton();
~MySingleton();
4 years ago
void hello_singleton();
4 years ago
};