tried fixing getsetter
This commit is contained in:
@@ -16,6 +16,11 @@ class DiscordSDK : public Object
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
private:
|
||||
int app_id;
|
||||
String state;
|
||||
String details;
|
||||
|
||||
public:
|
||||
static DiscordSDK *get_singleton();
|
||||
|
||||
|
@@ -18,7 +18,7 @@ void gdextension_initialize(ModuleInitializationLevel p_level)
|
||||
ClassDB::register_class<DiscordSDK>();
|
||||
|
||||
discordsdk = memnew(DiscordSDK);
|
||||
Engine::get_singleton()->register_singleton("DiscordActivity", DiscordSDK::get_singleton()); // Cant change the class name in the cpp files for some reason
|
||||
Engine::get_singleton()->register_singleton("DiscordSDK", DiscordSDK::get_singleton()); // Cant change the class name in the cpp files for some reason
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user