this.prototypes=prototypes;
}
@Override
public boolean execute() {
ResourcePrototype prototype=prototypes[index];
Asset asset;
if(prototype instanceof ImageResource){
asset=generateSpriteSheet((ImageResource)prototype);
}else if(prototype instanceof DataResource){
String url=((DataResource) prototype).getSafeUri().asString();
if(url.endsWith(".json")){
asset=generateJsonFile((DataResource)prototype);
}else{
return willThisContinue();
}
}else{
return willThisContinue();
}
assets.put(prototype.getName(),asset);
return willThisContinue();
}