diff --git a/godot_macros.h b/godot_macros.h index 20dc441..2983803 100644 --- a/godot_macros.h +++ b/godot_macros.h @@ -29,6 +29,9 @@ #define GDFUNCTION_STATIC_ARGS(_FnName, ...) \ ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), D_METHOD(#_FnName, __VA_ARGS__), &CLASSNAME::_FnName) +#define GDSIGNAL(...)\ + ClassDB::add_signal(MACRO_STRING(CLASSNAME), MethodInfo(__VA_ARGS__)) + #define GDRESOURCETYPE(_Class) vformat("%s/%s:%s", Variant::OBJECT, PROPERTY_HINT_RESOURCE_TYPE, #_Class) #define GDEDITORONLY() if(!Engine::get_singleton()->is_editor_hint()) return;