Compare commits
2 Commits
0230e4e109
...
160eeba054
Author | SHA1 | Date |
---|---|---|
Sara | 160eeba054 | |
Sara | 63bf083467 |
|
@ -1,6 +1,9 @@
|
|||
#ifndef UC_GODOT_MACROS_H
|
||||
#define UC_GODOT_MACROS_H
|
||||
|
||||
#include "godot_cpp/classes/engine.hpp"
|
||||
#include "godot_cpp/core/class_db.hpp"
|
||||
|
||||
#define MACRO_STRING_INNER(_Arg) #_Arg
|
||||
#define MACRO_STRING(_Arg) MACRO_STRING_INNER(_Arg)
|
||||
|
||||
|
@ -28,4 +31,7 @@
|
|||
|
||||
#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
|
||||
|
|
Loading…
Reference in New Issue