Explorar o código

change toString to toText

ncannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
327b2fc7b5
Modificáronse 2 ficheiros con 7 adicións e 2 borrados
  1. 2 2
      hxd/res/Any.hx
  2. 5 0
      hxd/res/Resource.hx

+ 2 - 2
hxd/res/Any.hx

@@ -43,10 +43,10 @@ class Any extends Resource {
 		return loader.loadImage(entry.path).toTile();
 	}
 	
-	public function toString() {
+	public function toText() {
 		return entry.getBytes().toString();
 	}
-
+	
 	public function toImage() {
 		return loader.loadImage(entry.path);
 	}

+ 5 - 0
hxd/res/Resource.hx

@@ -13,4 +13,9 @@ class Resource {
 		return entry.name;
 	}
 	
+	function toString() {
+		return entry.path;
+	}
+
+	
 }