public ColorMesher(ILandSettings settings, MesherSettings mesherSettings) { _settings = settings; _blocksColors = new Color[(int)mesherSettings.Blocks.Max(z => z.Block) + 1]; foreach (var blockColor in mesherSettings.Blocks) _blocksColors[(int) blockColor.Block] = blockColor.Color; }
public TextureMesher(ILandSettings settings, MesherSettings meshSettings) { _meshSettings = meshSettings; foreach (var block in meshSettings.Blocks) { _blockSettings.Add(block.Block, block); } }