From 1e5f9305768ebbc82248d770ff7113bd7d75c801 Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 31 May 2024 21:16:28 +0200 Subject: [PATCH] feat: added GDENUMTYPE macro --- godot_macros.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/godot_macros.hpp b/godot_macros.hpp index 43fc322..a13dd65 100644 --- a/godot_macros.hpp +++ b/godot_macros.hpp @@ -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.