diff --git a/html/godot__macros_8h.html b/html/godot__macros_8h.html index 3ab9b1a..b2c408c 100644 --- a/html/godot__macros_8h.html +++ b/html/godot__macros_8h.html @@ -100,19 +100,20 @@ Macros  Register a hinted property.
  #define GDFUNCTION(FnName_)   godot::ClassDB::bind_method(godot::D_METHOD(#FnName_), &CLASSNAME::FnName_) - Register a function.
+ Register a function CLASSNAME::FnName_() to godot.
  #define GDFUNCTION_ARGS(FnName_, ...)   godot::ClassDB::bind_method(godot::D_METHOD(#FnName_, __VA_ARGS__), &CLASSNAME::FnName_) - Register a function with arguments.
+ Register a function CLASSNAME::FnName_(...) to godot.
  #define GDFUNCTION_STATIC(FnName_)   godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_), &CLASSNAME::_FnName) - Register a static function.
+ Register a static member function CLASSNAME::FnName_() to godot.
  #define GDFUNCTION_STATIC_ARGS(FnName_, ...)   godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_, __VA_ARGS__), &CLASSNAME::FnName_) - Register a static function with arguments.
+ Register a static member function CLASSNAME::FnName_(...) to godot.
  -#define GDSIGNAL(...)   godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__)) - Declare a godot Observer signal.
+ +#define GDSIGNAL(...)   godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__)) + Declare a godot Observer signal.
  #define GDRESOURCETYPE(Class_)   godot::vformat("%s/%s:%s", godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)  Construct godot resource type hint.
@@ -175,7 +176,7 @@ Macros
-Value:
struct Name_ {\
+Value:
struct Name_ {\
enum Value {__VA_ARGS__};\
private:\
Value value{};\
@@ -206,8 +207,8 @@ Macros
-

Register a function.

-

Register a function CLASSNAME::FnName_() to godot. Requires setting CLASSNAME as a #define first.

+

Register a function CLASSNAME::FnName_() to godot.

+

Requires setting CLASSNAME as a #define first.

@@ -237,8 +238,8 @@ Macros
-

Register a function with arguments.

-

Register a function CLASSNAME::FnName_(...) to godot. Requires setting CLASSNAME as a #define first.

+

Register a function CLASSNAME::FnName_(...) to godot.

+

Requires setting CLASSNAME as a #define first.

@@ -258,8 +259,8 @@ Macros
-

Register a static function.

-

Register a static member function CLASSNAME::FnName_() to godot. Requires setting CLASSNAME as a #define first.

+

Register a static member function CLASSNAME::FnName_() to godot.

+

Requires setting CLASSNAME as a #define first.

@@ -289,8 +290,8 @@ Macros
-

Register a static function with arguments.

-

Register a static member function CLASSNAME::FnName_(...) to godot. Requires setting CLASSNAME as a #define first.

+

Register a static member function CLASSNAME::FnName_(...) to godot.

+

Requires setting CLASSNAME as a #define first.

@@ -407,27 +408,6 @@ Macros

Construct godot resource type hint.

Use when registering properties of arrays of resource classes.

- - - -

◆ GDSIGNAL

- -
-
- - - - - - - - -
#define GDSIGNAL( ...)   godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__))
-
- -

Declare a godot Observer signal.

-

Declare the existence of a Observer signal to godot.

-
diff --git a/html/godot__macros_8h_source.html b/html/godot__macros_8h_source.html index dce0e0c..9bbcdf3 100644 --- a/html/godot__macros_8h_source.html +++ b/html/godot__macros_8h_source.html @@ -95,32 +95,33 @@ $(function() {
35 godot::ClassDB::bind_method(godot::D_METHOD("set_" #PropName_, "value"), &CLASSNAME::set_##PropName_); \
36 godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_, __VA_ARGS__), "set_" #PropName_, "get_" #PropName_)
37
-
44#define GDFUNCTION(FnName_) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_), &CLASSNAME::FnName_)
-
45
-
52#define GDFUNCTION_ARGS(FnName_, ...) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_, __VA_ARGS__), &CLASSNAME::FnName_)
-
53
-
60#define GDFUNCTION_STATIC(FnName_) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_), &CLASSNAME::_FnName)
-
61
-
68#define GDFUNCTION_STATIC_ARGS(FnName_, ...) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_, __VA_ARGS__), &CLASSNAME::FnName_)
-
69
-
75#define GDSIGNAL(...) godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__))
-
76
-
82#define GDRESOURCETYPE(Class_) godot::vformat("%s/%s:%s", godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)
-
83
-
89#define GDEDITORONLY() if(!godot::Engine::get_singleton()->is_editor_hint()) return;
-
95#define GDGAMEONLY() if(godot::Engine::get_singleton()->is_editor_hint()) return;
-
96
-
102#define GDENUM(Name_, ...) struct Name_ {\
-
103 enum Value {__VA_ARGS__};\
-
104 private:\
-
105 Value value{};\
-
106 public:\
-
107 static inline godot::String get_property_hint() { return godot::String(#__VA_ARGS__); }\
-
108 inline Name_(Value value): value{value} {}\
-
109 inline Name_(Name_ const &value): value{value.value} {}\
-
110}
-
111
-
112#endif // !UC_GODOT_MACROS_H
+
43#define GDFUNCTION(FnName_) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_), &CLASSNAME::FnName_)
+
44
+
50#define GDFUNCTION_ARGS(FnName_, ...) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_, __VA_ARGS__), &CLASSNAME::FnName_)
+
51
+
57#define GDFUNCTION_STATIC(FnName_) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_), &CLASSNAME::_FnName)
+
58
+
64#define GDFUNCTION_STATIC_ARGS(FnName_, ...) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_, __VA_ARGS__), &CLASSNAME::FnName_)
+
65
+
69#define GDSIGNAL(...) godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__))
+
70
+
76#define GDRESOURCETYPE(Class_) godot::vformat("%s/%s:%s", godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)
+
77
+
83#define GDEDITORONLY() if(!godot::Engine::get_singleton()->is_editor_hint()) return;
+
89#define GDGAMEONLY() if(godot::Engine::get_singleton()->is_editor_hint()) return;
+
90
+
96#define GDENUM(Name_, ...)\
+
97struct Name_ {\
+
98 enum Value {__VA_ARGS__};\
+
99 private:\
+
100 Value value{};\
+
101 public:\
+
102 static inline godot::String get_property_hint() { return godot::String(#__VA_ARGS__); }\
+
103 inline Name_(Value value): value{value} {}\
+
104 inline Name_(Name_ const &value): value{value.value} {}\
+
105}
+
106
+
107#endif // !UC_GODOT_MACROS_H