remove unused functions

This commit is contained in:
austin 2024-09-04 20:15:32 -04:00
parent 43790cef7b
commit 4be41f1b04
2 changed files with 5 additions and 45 deletions

View File

@ -683,6 +683,11 @@ Fix AttachUtils NPE bug
Work on testing stability
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

View File

@ -13,7 +13,6 @@ import electrosphere.entity.Entity;
import electrosphere.entity.EntityUtils;
import electrosphere.entity.types.terrain.TerrainChunk;
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
@ -238,49 +237,5 @@ public class DrawCell {
types[ChunkData.CHUNK_SIZE][ChunkData.CHUNK_SIZE][ChunkData.CHUNK_SIZE] = 0;
}
}
/**
* 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;
// }
// }
// }
}
}