public SavedWorldInfo(World world, TerrainGen terrain) { colorA = new VoxColor(terrain.colorA); colorB = new VoxColor(terrain.colorB); terrainSeed = terrain.randomSeed; chunkInfos = new List<SavedChunkInfo>(); foreach (var chunk in world.Chunks) { var chunkInfo = new SavedChunkInfo(chunk.Value); if(chunkInfo.hasBlocks) chunkInfos.Add(chunkInfo); } }
public Block(Color color) { VoxBlockColor = new VoxColor(color); }