feat: added GDSIGNAL macro
parent
1dd1d3b961
commit
34a0493ee7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue