Created
March 29, 2021 00:07
-
-
Save KinoAR/4cc362d00a907a8c67105aa8c5e5d4f0 to your computer and use it in GitHub Desktop.
Build Macro Example in HaxeFlixel
This file contains 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
package; | |
// Path to your own depot file | |
@:build(macros.DepotMacros.buildDepotFile('assets/data/database.dpo')) | |
class DepotData {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
@:build
will trigger the macro in your codebase allowing you to get code completion on the important members of your data from your DepotData file.