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++
25 lines
370 B
C++
#pragma once
|
|
|
|
#include <godot_cpp/classes/object.hpp>
|
|
#include <godot_cpp/core/class_db.hpp>
|
|
|
|
using namespace godot;
|
|
|
|
class MySingleton : public Object
|
|
{
|
|
GDCLASS(MySingleton, Object);
|
|
|
|
static MySingleton *singleton;
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
public:
|
|
static MySingleton *get_singleton();
|
|
|
|
MySingleton();
|
|
~MySingleton();
|
|
|
|
void hello_singleton();
|
|
};
|