Basic work on the genResources task

This commit is contained in:
modmuss50 2019-03-01 21:24:26 +00:00
parent 97b517580a
commit 001dd9ac74
3 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,40 @@
package techreborn.build.model;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class ModelBuilder {
File outputDir;
private List<Model> models = new ArrayList<>();
public ModelBuilder(File outputDir) {
this.outputDir = outputDir;
}
public ModelBuilder generate(){
//TODO write out all the files
return this;
}
public Model model(String name){
Model model = new Model(name, this);
models.add(model);
return model;
}
public static class Model {
String name;
ModelBuilder modelBuilder;
private Model(String name, ModelBuilder modelBuilder) {
this.name = name;
this.modelBuilder = modelBuilder;
}
public ModelBuilder build(){
return modelBuilder;
}
}
}