feat: added GDEDITORONLY and GDGAMEONLY

stripped
Sara 2024-02-02 08:47:05 +01:00
parent 0230e4e109
commit 63bf083467
1 changed files with 3 additions and 0 deletions

View File

@ -28,4 +28,7 @@
#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 GDGAMEONLY() if(Engine::get_singleton()->is_editor_hint()) return
#endif // !UC_GODOT_MACROS_H #endif // !UC_GODOT_MACROS_H