Browse Source

added toString()

Nicolas Cannasse 12 năm trước cách đây
mục cha
commit
73e98839c9
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      hxd/res/Any.hx

+ 4 - 0
hxd/res/Any.hx

@@ -25,6 +25,10 @@ class Any extends Resource {
 	public function toTile() {
 		return loader.loadTexture(entry.path).toTile();
 	}
+	
+	public function toString() {
+		return entry.getBytes().toString();
+	}
 
 	public function getTexture() {
 		return loader.loadTexture(entry.path);