should work but it doesn't whatever

This commit is contained in:
Yannik
2023-04-19 23:46:38 +02:00
parent d488bf51de
commit e006e18bcf
7 changed files with 79 additions and 63 deletions

View File

@@ -1,27 +1,27 @@
#ifndef DISCORDRPC_H
#define DISCORDRPC_H
#ifndef MAIN_H
#define MAIN_H
#include <godot_cpp/classes/node.hpp>
#include <godot_cpp/classes/object.hpp>
#include <godot_cpp/core/class_db.hpp>
namespace godot
using namespace godot;
class DiscordSDK : public Object
{
class DiscordRPC : public Node
{
GDCLASS(DiscordRPC, Node)
GDCLASS(DiscordSDK, Object);
private:
float time_passed;
static DiscordSDK *singleton;
protected:
static void _bind_methods();
protected:
static void _bind_methods();
public:
DiscordRPC();
~DiscordRPC();
public:
static DiscordSDK *get_singleton();
void _ready();
void _process(float delta);
};
}
DiscordSDK();
~DiscordSDK();
void debug();
};
#endif