fCraft.Drawing.BlockPalette.BlockPalette C# (CSharp) Метод

BlockPalette() защищенный Метод

protected BlockPalette ( [ name, int layers ) : System
name [
layers int
Результат System
        protected BlockPalette( [NotNull] string name, int layers )
        {
            if( name == null )
                throw new ArgumentNullException( "name" );
            Name = name;
            Layers = layers;

            TransparencyThreshold = TransparencyThresholdDefault;
            transparent = new Block[layers];
            for( int i = 0; i < layers; i++ ) {
                transparent[i] = Block.Undefined;
            }
        }