Files
DSTEngine/hGameTest/src/Assets.hx
2026-08-06 00:29:37 +02:00

29 lines
848 B
Haxe

package;
/**
* Asset definition class using meta tags instead of project.xml
* The AssetMacro will process these declarations at compile time
*/
@:build(macros.AssetMacro.build()) // Fix: use fully qualified path with package name
@:keep
class Assets {
// Define image assets
@:Assets("assets/images/", "images")
private static var images:String;
// Define sound assets
@:Assets("assets/sounds/", "sounds")
private static var sounds:String;
// Define font assets
@:Assets("assets/fonts/", "fonts")
private static var fonts:String;
// Define data assets
@:Assets("assets/data/", "data")
private static var data:String;
// You can also define individual files if needed
// @:Assets("assets/images/logo.png", "images", "logo.png")
// public static var logo:String;
}