Closed deepnight closed 3 years ago
Thanks for the PR! This'll be super handy 😁
For the next step, I might try to figure out if its possible to add these methods directly to the aseprite.res.Aseprite
class - It would be really cool to be able to just do something like var myTags = hxd.Res.myfile.getTags();
🤔
I couldn't find a way to do that unfortunately, because this would require to make hxd.Res.myFile
return a specific class that inherits Aseprite, for it to be populated with "tag fields". And I don't see how to plug that with hxd.Res 🤔
I get lost in the Macro inception and my mind just blows up at this point.
Slightly better than previous PR :)
This class extracts various identifiers from an Aseprite file on compilation time. This creates a typed structure that allows some type-safety: if an identifier changes in your Aseprite file (for example a tag), your compilation will show errors wherever this identifier was used. Example: