Skip to content

Instantly share code, notes, and snippets.

@KinoAR
Created March 29, 2021 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KinoAR/4cc362d00a907a8c67105aa8c5e5d4f0 to your computer and use it in GitHub Desktop.
Save KinoAR/4cc362d00a907a8c67105aa8c5e5d4f0 to your computer and use it in GitHub Desktop.
Build Macro Example in HaxeFlixel
package;
// Path to your own depot file
@:build(macros.DepotMacros.buildDepotFile('assets/data/database.dpo'))
class DepotData {}
@KinoAR
Copy link
Author

KinoAR commented Mar 29, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment