Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
85 lines
1.7 KiB
Java
85 lines
1.7 KiB
Java
package electrosphere.entity.scene;
|
|
|
|
/**
|
|
* Description of the realm a scene is created within
|
|
*/
|
|
public class RealmDescriptor {
|
|
|
|
/**
|
|
* A gridded realm
|
|
*/
|
|
public static final String REALM_DESCRIPTOR_GRIDDED = "gridded";
|
|
public static final String REALM_DESCRIPTOR_PROCEDURAL = "procedural";
|
|
public static final String REALM_DESCRIPTOR_GENERATION_TESTING = "generationTesting";
|
|
|
|
/**
|
|
* The dirt voxel type's id
|
|
*/
|
|
public static final int VOXEL_DIRT_ID = 1;
|
|
|
|
/**
|
|
* The type of realm
|
|
*/
|
|
String type = REALM_DESCRIPTOR_GRIDDED;
|
|
|
|
/**
|
|
* If this is a gridded realm, what is the size of the realm
|
|
*/
|
|
int griddedRealmSize;
|
|
|
|
/**
|
|
* The base voxel type to generate with
|
|
*/
|
|
Integer baseVoxel = VOXEL_DIRT_ID;
|
|
|
|
|
|
/**
|
|
* Gets the type of realm
|
|
* @return The type
|
|
*/
|
|
public String getType(){
|
|
return type;
|
|
}
|
|
|
|
/**
|
|
* Sets the type of realm
|
|
* @param realmType The realm type
|
|
*/
|
|
public void setType(String realmType){
|
|
this.type = realmType;
|
|
}
|
|
|
|
/**
|
|
* Gets the size of the gridded realm
|
|
* @return The size
|
|
*/
|
|
public int getGriddedRealmSize(){
|
|
return griddedRealmSize;
|
|
}
|
|
|
|
/**
|
|
* Sets the size of the gridded realm
|
|
* @param size The size
|
|
*/
|
|
public void setGriddedRealmSize(int size){
|
|
this.griddedRealmSize = size;
|
|
}
|
|
|
|
/**
|
|
* Gets the id of the base voxel type
|
|
* @return the id of the base voxel type
|
|
*/
|
|
public Integer getBaseVoxel(){
|
|
return this.baseVoxel;
|
|
}
|
|
|
|
/**
|
|
* Sets the base voxel type
|
|
* @param voxelId The voxel type's id
|
|
*/
|
|
public void setBaseVoxel(int voxelId){
|
|
this.baseVoxel = voxelId;
|
|
}
|
|
|
|
}
|