fix macro not running without explicit import
This commit is contained in:
@@ -15,6 +15,11 @@ using StringTools;
|
||||
class AssetMacro {
|
||||
// Track all assets processed
|
||||
private static var assetMap:Map<String, Array<{id:String, path:String, size:Int, type:String}>> = new Map();
|
||||
|
||||
/** Force Assets to be typed, which invokes its @:build macro. */
|
||||
public static function includeAssets():Void {
|
||||
Context.getType("Assets");
|
||||
}
|
||||
|
||||
/**
|
||||
* Entry point for the macro - called during compilation
|
||||
|
||||
Reference in New Issue
Block a user