added constants to Asset

This commit is contained in:
Cedric Beck
2024-11-14 16:35:00 +01:00
parent 499da6a7ad
commit def68f30be

View File

@@ -28,10 +28,13 @@ public enum Asset {
private final String diffPath;
private final float size;
private static final String MODEL_FILETYPE = ".j3o";
private static final String DIFFUSE_EXT = "_diff.png";
Asset(){
String folderFileName = "./" + name() + "/" + name();
this.modelPath = folderFileName + ".j3o";
this.diffPath = folderFileName + "_diff.png";
this.modelPath = folderFileName + MODEL_FILETYPE;
this.diffPath = folderFileName + DIFFUSE_EXT;
this.size = 1f;
}
@@ -43,8 +46,8 @@ public enum Asset {
Asset(float size){
String folderFileName = "./" + name() + "/" + name();
this.modelPath = folderFileName + ".j3o";
this.diffPath = folderFileName + "_diff.png";
this.modelPath = folderFileName + MODEL_FILETYPE;
this.diffPath = folderFileName + DIFFUSE_EXT;
this.size = size;
}