diff --git a/html/godot__macros_8h_source.html b/html/godot__macros_8h_source.html index e435a7c..df94740 100644 --- a/html/godot__macros_8h_source.html +++ b/html/godot__macros_8h_source.html @@ -85,42 +85,42 @@ $(function() {
12#define MACRO_STRING_INNER(_Arg) #_Arg
13#define MACRO_STRING(_Arg) MACRO_STRING_INNER(_Arg)
14
-
20#define GDPROPERTY(PropName_, PropType_) \
-
21 godot::ClassDB::bind_method(godot::D_METHOD("get_" #PropName_), &CLASSNAME::get_##PropName_); \
-
22 godot::ClassDB::bind_method(godot::D_METHOD("set_" #PropName_, "value"), &CLASSNAME::set_##PropName_); \
-
23 godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_), "set_" #PropName_, "get_" #PropName_)
-
24
-
30#define GDPROPERTY_HINTED(PropName_, PropType_, ...) \
-
31 godot::ClassDB::bind_method(godot::D_METHOD("get_" #PropName_), &CLASSNAME::get_##PropName_); \
-
32 godot::ClassDB::bind_method(godot::D_METHOD("set_" #PropName_, "value"), &CLASSNAME::set_##PropName_); \
-
33 godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_, __VA_ARGS__), "set_" #PropName_, "get_" #PropName_)
-
34
-
40#define GDFUNCTION(_FnName) godot::ClassDB::bind_method(godot::D_METHOD(#_FnName), &CLASSNAME::_FnName)
-
41
-
47#define GDFUNCTION_ARGS(_FnName, ...) godot::ClassDB::bind_method(godot::D_METHOD(#_FnName, __VA_ARGS__), &CLASSNAME::_FnName)
-
48
-
54#define GDFUNCTION_STATIC(_FnName) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#_FnName), &CLASSNAME::_FnName)
-
55
-
61#define GDFUNCTION_STATIC_ARGS(_FnName, ...) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#_FnName, __VA_ARGS__), &CLASSNAME::_FnName)
-
62
-
67#define GDSIGNAL(...) godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__))
+
21#define GDPROPERTY(PropName_, PropType_) \
+
22 godot::ClassDB::bind_method(godot::D_METHOD("get_" #PropName_), &CLASSNAME::get_##PropName_); \
+
23 godot::ClassDB::bind_method(godot::D_METHOD("set_" #PropName_, "value"), &CLASSNAME::set_##PropName_); \
+
24 godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_), "set_" #PropName_, "get_" #PropName_)
+
25
+
32#define GDPROPERTY_HINTED(PropName_, PropType_, ...) \
+
33 godot::ClassDB::bind_method(godot::D_METHOD("get_" #PropName_), &CLASSNAME::get_##PropName_); \
+
34 godot::ClassDB::bind_method(godot::D_METHOD("set_" #PropName_, "value"), &CLASSNAME::set_##PropName_); \
+
35 godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_, __VA_ARGS__), "set_" #PropName_, "get_" #PropName_)
+
36
+
43#define GDFUNCTION(FnName_) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_), &CLASSNAME::FnName_)
+
44
+
51#define GDFUNCTION_ARGS(FnName_, ...) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_, __VA_ARGS__), &CLASSNAME::FnName_)
+
52
+
59#define GDFUNCTION_STATIC(FnName_) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_), &CLASSNAME::_FnName)
+
60
+
67#define GDFUNCTION_STATIC_ARGS(FnName_, ...) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_, __VA_ARGS__), &CLASSNAME::FnName_)
68
-
73#define GDRESOURCETYPE(_Class) godot::vformat("%s/%s:%s", godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #_Class)
-
74
-
79#define GDEDITORONLY() if(!godot::Engine::get_singleton()->is_editor_hint()) return;
-
84#define GDGAMEONLY() if(godot::Engine::get_singleton()->is_editor_hint()) return;
-
85
-
90#define GDENUM(Name_, ...) struct Name_ {\
-
91 enum Value {__VA_ARGS__};\
-
92 private:\
-
93 Value value{};\
-
94 public:\
-
95 static inline godot::String get_property_hint() { return godot::String(#__VA_ARGS__); }\
-
96 inline Name_(Value value): value{value} {}\
-
97 inline Name_(Name_ const &value): value{value.value} {}\
-
98}
-
99
-
100#endif // !UC_GODOT_MACROS_H
+
74#define GDSIGNAL(...) godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__))
+
75
+
81#define GDRESOURCETYPE(Class_) godot::vformat("%s/%s:%s", godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)
+
82
+
88#define GDEDITORONLY() if(!godot::Engine::get_singleton()->is_editor_hint()) return;
+
94#define GDGAMEONLY() if(godot::Engine::get_singleton()->is_editor_hint()) return;
+
95
+
101#define GDENUM(Name_, ...) struct Name_ {\
+
102 enum Value {__VA_ARGS__};\
+
103 private:\
+
104 Value value{};\
+
105 public:\
+
106 static inline godot::String get_property_hint() { return godot::String(#__VA_ARGS__); }\
+
107 inline Name_(Value value): value{value} {}\
+
108 inline Name_(Name_ const &value): value{value.value} {}\
+
109}
+
110
+
111#endif // !UC_GODOT_MACROS_H