소스 검색

added toTiledMap

Nicolas Cannasse 11 년 전
부모
커밋
c832e87a6d
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      hxd/res/Any.hx

+ 4 - 0
hxd/res/Any.hx

@@ -66,6 +66,10 @@ class Any extends Resource {
 	public function toBitmapFont() {
 		return loader.loadBitmapFont(entry.path);
 	}
+	
+	public function toTiledMap() {
+		return loader.loadTiledMap(entry.path);
+	}
 
 	public inline function iterator() {
 		return new hxd.impl.ArrayIterator([for( f in entry ) new Any(loader,f)]);