WIP
This commit is contained in:
29
hGameTest/src/Assets.hx
Normal file
29
hGameTest/src/Assets.hx
Normal file
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user