Exemple #1
0
		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);
			}
		}
Exemple #2
0
		public Block(Color color)
		{
			VoxBlockColor = new VoxColor(color);
		}