started making editor presence with gdextension instead of gdscript

This commit is contained in:
2023-12-18 17:52:31 +01:00
parent 210555d7a5
commit 1e1bc6c59d
5 changed files with 105 additions and 18 deletions

30
src/editor_presence.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef DISCORDGODOT_H
#define DISCORDGODOT_H
#include <stdio.h>
#include "lib/discord_game_sdk/cpp/discord.h"
#include <godot_cpp/classes/node.hpp>
#include <godot_cpp/core/class_db.hpp>
using namespace godot;
class EditorPresence : public Node
{
GDCLASS(EditorPresence, Node);
static EditorPresence *singleton;
protected:
static void _bind_methods();
public:
static EditorPresence *
get_singleton();
EditorPresence();
~EditorPresence();
void _ready() override;
void _process(double delta) override;
};
#endif