Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Build Macro Example in HaxeFlixel
package;
// Path to your own depot file
@:build(macros.DepotMacros.buildDepotFile('assets/data/database.dpo'))
class DepotData {}
@KinoAR

This comment has been minimized.

Copy link
Owner Author

@KinoAR 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