feat: added GDSIGNAL macro

stripped
Sara 2024-03-20 11:35:13 +01:00
parent 1dd1d3b961
commit 34a0493ee7
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@
#define GDFUNCTION_STATIC_ARGS(_FnName, ...) \ #define GDFUNCTION_STATIC_ARGS(_FnName, ...) \
ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), D_METHOD(#_FnName, __VA_ARGS__), &CLASSNAME::_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 GDRESOURCETYPE(_Class) vformat("%s/%s:%s", Variant::OBJECT, PROPERTY_HINT_RESOURCE_TYPE, #_Class)
#define GDEDITORONLY() if(!Engine::get_singleton()->is_editor_hint()) return; #define GDEDITORONLY() if(!Engine::get_singleton()->is_editor_hint()) return;