remove unused functions
This commit is contained in:
parent
43790cef7b
commit
4be41f1b04
@ -683,6 +683,11 @@ Fix AttachUtils NPE bug
|
|||||||
Work on testing stability
|
Work on testing stability
|
||||||
Viewport loading
|
Viewport loading
|
||||||
|
|
||||||
|
(09/04/2024)
|
||||||
|
Fix viewport realm server data cell not being flagged as ready
|
||||||
|
Fix NPEs on property lookups on entities
|
||||||
|
Unit tests for above
|
||||||
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,6 @@ import electrosphere.entity.Entity;
|
|||||||
import electrosphere.entity.EntityUtils;
|
import electrosphere.entity.EntityUtils;
|
||||||
import electrosphere.entity.types.terrain.TerrainChunk;
|
import electrosphere.entity.types.terrain.TerrainChunk;
|
||||||
import electrosphere.renderer.meshgen.TransvoxelModelGeneration.TransvoxelChunkData;
|
import electrosphere.renderer.meshgen.TransvoxelModelGeneration.TransvoxelChunkData;
|
||||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A single drawcell - contains an entity that has a physics mesh and potentially graphics
|
* A single drawcell - contains an entity that has a physics mesh and potentially graphics
|
||||||
@ -239,48 +238,4 @@ public class DrawCell {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fills in the internal arrays of data for generate terrain models
|
|
||||||
*/
|
|
||||||
private void fillInData(TransvoxelChunkData chunkData, int lod, DrawCellFace face){
|
|
||||||
float[][] faceData = new float[ServerTerrainChunk.CHUNK_DATA_GENERATOR_SIZE][ServerTerrainChunk.CHUNK_DATA_GENERATOR_SIZE];
|
|
||||||
int[][] atlasData = new int[ServerTerrainChunk.CHUNK_DATA_GENERATOR_SIZE][ServerTerrainChunk.CHUNK_DATA_GENERATOR_SIZE];
|
|
||||||
switch(face){
|
|
||||||
case X_POSITIVE: {
|
|
||||||
} break;
|
|
||||||
case X_NEGATIVE: {
|
|
||||||
} break;
|
|
||||||
case Y_POSITIVE: {
|
|
||||||
} break;
|
|
||||||
case Y_NEGATIVE: {
|
|
||||||
} break;
|
|
||||||
case Z_POSITIVE: {
|
|
||||||
} break;
|
|
||||||
case Z_NEGATIVE: {
|
|
||||||
} break;
|
|
||||||
}
|
|
||||||
//
|
|
||||||
//fill in data
|
|
||||||
//
|
|
||||||
//main chunk
|
|
||||||
//face X
|
|
||||||
// if(worldPos.x + 1 < Globals.clientWorldData.getWorldDiscreteSize()){
|
|
||||||
// currentChunk = Globals.clientTerrainManager.getChunkDataAtWorldPoint(worldPos.x + 1, worldPos.y, worldPos.z);
|
|
||||||
// for(int i = 0; i < ChunkData.CHUNK_SIZE; i++){
|
|
||||||
// for(int j = 0; j < ChunkData.CHUNK_SIZE; j++){
|
|
||||||
// weights[ChunkData.CHUNK_SIZE][i][j] = currentChunk.getWeight(0, i, j);
|
|
||||||
// types[ChunkData.CHUNK_SIZE][i][j] = currentChunk.getType(0, i, j);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// for(int i = 0; i < ChunkData.CHUNK_SIZE; i++){
|
|
||||||
// for(int j = 0; j < ChunkData.CHUNK_SIZE; j++){
|
|
||||||
// weights[ChunkData.CHUNK_SIZE][i][j] = -1;
|
|
||||||
// types[ChunkData.CHUNK_SIZE][i][j] = 0;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user