Last active
February 14, 2016 12:29
-
-
Save zaynyatyi/2a4271bfd13d092b5105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@:build(kha.internal.AssetsBuilder.build("image")) | |
class ImageList { | |
var images:Map<String, ImageInstance>; | |
public function new() { | |
} | |
} | |
class ImageInstance { | |
var image:kha.Image; | |
var load:Void->Void; | |
var unload:Void->Void; | |
} | |
macro static public function build(type: String): Array<Fields> { | |
switch (type) { | |
case "image": | |
//create map instance here and fill it with ImageInstance objects | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment