implemented atlas loading
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package assets;
|
||||
|
||||
import openfl.display.BitmapData;
|
||||
import openfl.Assets;
|
||||
import haxe.Json;
|
||||
import assets.tilesets.Tileset;
|
||||
|
||||
class TextureFile{
|
||||
public static var pathMap:Map<String,TextureFile>;
|
||||
public static function addUser(path:String, user:Dynamic):Void
|
||||
{
|
||||
if(pathMap[path] == null){
|
||||
pathMap[path] = new TextureFile();
|
||||
}
|
||||
pathMap[path].users.push(user);
|
||||
}
|
||||
public static function removeUser():Void
|
||||
{
|
||||
if()
|
||||
}
|
||||
public var bitmapData:BitmapData = null;
|
||||
public var users:Array<Dynamic>=[];
|
||||
public var path:String;
|
||||
private function new(){
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user