feat: added GDENUMTYPE macro

stripped
Sara 2024-05-31 21:16:28 +02:00
parent ceda870d06
commit 1e5f930576
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@
* Use when registering properties of arrays of resource classes.
*/
#define GDRESOURCETYPE(Class_) godot::vformat("%s/%s:%s", godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)
#define GDENUMTYPE(EnumString_) godot::vformat("%s/%s:%s", godot::Variant::INT, godot::PROPERTY_HINT_ENUM, #EnumString_)
/*! \def GDEDITORONLY()
* \brief Execute the rest of the function only if currently running as editor.