28 lines
		
	
	
		
			629 B
		
	
	
	
		
			Haxe
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			629 B
		
	
	
	
		
			Haxe
		
	
	
	
	
	
| 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(){
 | |
| 
 | |
|     }
 | |
| }
 |