Terraria.BitsByte.BitsByte C# (CSharp) Method

BitsByte() public method

public BitsByte ( bool b1 = false, bool b2 = false, bool b3 = false, bool b4 = false, bool b5 = false, bool b6 = false, bool b7 = false, bool b8 = false )
b1 bool
b2 bool
b3 bool
b4 bool
b5 bool
b6 bool
b7 bool
b8 bool
        public BitsByte(bool b1 = false, bool b2 = false, bool b3 = false, bool b4 = false, bool b5 = false, bool b6 = false, bool b7 = false, bool b8 = false)
        {
            this.value = (byte)0;
            this[0] = b1;
            this[1] = b2;
            this[2] = b3;
            this[3] = b4;
            this[4] = b5;
            this[5] = b6;
            this[6] = b7;
            this[7] = b8;
        }