Esempio n. 1
0
 public void LoadFromFile(GameFile gameFile, ref string loadingMessage)
 {
     foreach (VoxelChunk chunk in gameFile.Data.ChunkData.Select(file => file.ToChunk(chunkManager)))
     {
         AddChunk(chunk);
     }
     chunkManager.UpdateBounds();
     chunkManager.UpdateRebuildList();
     chunkManager.CreateGraphics(ref loadingMessage, this);
 }
Esempio n. 2
0
 public void LoadFromFile(GameFile gameFile, Action <String> SetLoadingMessage)
 {
     foreach (VoxelChunk chunk in gameFile.Data.ChunkData.Select(file => file.ToChunk(chunkManager)))
     {
         AddChunk(chunk);
     }
     RecomputeNeighbors();
     chunkManager.UpdateBounds();
     chunkManager.UpdateRebuildList();
     chunkManager.CreateGraphics(SetLoadingMessage, this);
 }