Sort assets by name in AssetManager and ObjectManager

This commit is contained in:
johni0702
2015-08-18 13:42:03 +02:00
parent cd19a768a1
commit 139553c15b
5 changed files with 42 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ public interface ReplayAsset<T> extends GuiEntryListEntry {
void drawToScreen(int x, int y, int maxWidth, int maxHeight);
String getAssetName();
void setAssetName(String name);
ReplayAsset<T> copy();

View File

@@ -40,6 +40,11 @@ public class ReplayImageAsset implements ReplayAsset<BufferedImage> {
this.name = name;
}
@Override
public String getAssetName() {
return name;
}
@Override
public void setAssetName(String name) {
this.name = name;