Ejemplo n.º 1
0
 public FileAnalyzer(string filePath, string fileName)
 {
     _uf            = new UtilitiesFunctions();
     this._filePath = filePath;
     this._fileName = fileName;
     AllWordListToTxt();
 }
Ejemplo n.º 2
0
 public void GenerateBiomeVertices()
 {
     lock (chunkVertices)
     {
         UtilitiesFunctions.quickSort(chunkVertices, 0, chunkVertices.Count - 1);
         List <Vector3> tempList = new List <Vector3>();
         for (int biomeIndex = 2; biomeIndex < ChunkAttributes.biomes.Length; biomeIndex++)
         {
             while (chunkVertices.Count > 0 && chunkVertices[0].y <= ChunkAttributes.biomes[biomeIndex].elevation * ChunkAttributes.scale)
             {
                 tempList.Add(chunkVertices[0]);
                 chunkVertices.RemoveAt(0);
             }
             ChunkAttributes.biomes[biomeIndex].biomeVertices = new Vector3[tempList.Count];
             tempList.ToArray().CopyTo(ChunkAttributes.biomes[biomeIndex].biomeVertices, 0);
             tempList.Clear();
         }
     }
 }