File tree 4 files changed +16
-45
lines changed 4 files changed +16
-45
lines changed Original file line number Diff line number Diff line change 59
59
60
60
if env ["target" ] in ["editor" , "template_debug" ]:
61
61
try :
62
- doc_data = env .GodotCPPDocData ("src/gen/doc_data.gen.cpp" , source = Glob ("doc_classes/*.xml" ))
62
+ doc_data = env .GodotCPPDocData ("src/gen/doc_data.gen.cpp" , source = Glob ("./ doc_classes/*.xml" ))
63
63
sources .append (doc_data )
64
64
print (doc_data )
65
65
except AttributeError :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#ifndef GODOTCORD_ACTIVITY_H
2
2
#define GODOTCORD_ACTIVITY_H
3
3
4
+ #ifdef IGNORE
5
+ #undef IGNORE
6
+ #endif
7
+
4
8
#include < godot_cpp/classes/ref_counted.hpp>
5
9
#include < godot_cpp/classes/ref.hpp>
6
10
@@ -107,4 +111,4 @@ class GodotcordActivity : public RefCounted {
107
111
VARIANT_ENUM_CAST (GodotcordActivity::ActivityRequestReply);
108
112
VARIANT_ENUM_CAST (GodotcordActivity::ActivityActionType);
109
113
110
- #endif
114
+ #endif
Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ using namespace godot;
27
27
void register_godotcord_types (ModuleInitializationLevel l) {
28
28
if (l != ModuleInitializationLevel::MODULE_INITIALIZATION_LEVEL_SCENE) return ;
29
29
30
- ClassDB::register_class<Godotcord>();
31
- ClassDB::register_class<GodotcordActivity>( );
32
- ClassDB::register_class<GodotcordRelationship>( );
33
- ClassDB::register_class<GodotcordPresence>( );
34
- ClassDB::register_class<GodotcordUser>( );
35
-
36
- ClassDB::register_class<GodotcordActivityManager>( );
37
- ClassDB::register_class<GodotcordOverlayManager>( );
38
- ClassDB::register_class<GodotcordRelationshipManager>( );
39
- ClassDB::register_class<GodotcordUserManager>( );
30
+ GDREGISTER_CLASS (Godotcord)
31
+ GDREGISTER_CLASS (GodotcordActivity );
32
+ GDREGISTER_CLASS (GodotcordRelationship );
33
+ GDREGISTER_CLASS (GodotcordPresence );
34
+ GDREGISTER_CLASS (GodotcordUser );
35
+
36
+ GDREGISTER_CLASS (GodotcordActivityManager );
37
+ GDREGISTER_CLASS (GodotcordOverlayManager );
38
+ GDREGISTER_CLASS (GodotcordRelationshipManager );
39
+ GDREGISTER_CLASS (GodotcordUserManager );
40
40
41
41
GC_ptr = memnew (Godotcord);
42
42
Engine::get_singleton ()->register_singleton (" Godotcord" , Godotcord::get_singleton ());
You can’t perform that action at this time.
0 commit comments