This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| // PROP_INLINE macros are used in the class declarations to declare the member, getters and setters | |
| // PROP_BIND macros are used in the _bind_methods | |
| // For PROP_BIND macros to work, you must do a #define CURR_CLASS MyClass before calling them. | |
| // Don't forget to #undef CURR_CLASS at the end. | |
| // NODE RESOLVE macros get the node from the serialized node path. I usually do this on _ready. | |
| #define STR_HLP(s) #s | |
| #define STR(s) STR_HLP(s) | |
| #define COMB_HLP(a,b) a ## b |