filter test scenes out of level selection
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
This commit is contained in:
parent
5dc45428ff
commit
edec17fc40
@ -1871,6 +1871,7 @@ Validate race data
|
|||||||
Shuffle entity data package
|
Shuffle entity data package
|
||||||
Rename structure -> virtualstructure
|
Rename structure -> virtualstructure
|
||||||
Update hometown storage on characters
|
Update hometown storage on characters
|
||||||
|
Filter test scenes out of level selection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -117,7 +117,7 @@ public class MenuGeneratorsLevelEditor {
|
|||||||
rVal.addChild(existingLevelColumn);
|
rVal.addChild(existingLevelColumn);
|
||||||
|
|
||||||
List<String> saveNames = SaveUtils.getSaves().stream().filter((String saveName) -> {
|
List<String> saveNames = SaveUtils.getSaves().stream().filter((String saveName) -> {
|
||||||
return !SaveUtils.isProcedural(saveName);
|
return !SaveUtils.isProcedural(saveName) && !SaveUtils.isTestScene(saveName);
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
for(String saveName : saveNames){
|
for(String saveName : saveNames){
|
||||||
|
|
||||||
@ -292,7 +292,6 @@ public class MenuGeneratorsLevelEditor {
|
|||||||
return rVal;
|
return rVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A level that is currently having its parameters defined
|
* A level that is currently having its parameters defined
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -270,5 +270,14 @@ public class SaveUtils {
|
|||||||
}
|
}
|
||||||
return sceneFile.getRealmDescriptor().getType().equals(RealmDescriptor.REALM_DESCRIPTOR_PROCEDURAL);
|
return sceneFile.getRealmDescriptor().getType().equals(RealmDescriptor.REALM_DESCRIPTOR_PROCEDURAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the level name is a test scene
|
||||||
|
* @param name The name of the level
|
||||||
|
* @return true if it is a test scene, false otherwise
|
||||||
|
*/
|
||||||
|
public static boolean isTestScene(String name){
|
||||||
|
return name.equals("testscene1");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user