public void CopyFrom(GameFile file) { Data = file.Data; }
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); }