entity.MetaEditor2.Bitmask.Bitmask C# (CSharp) Method

Bitmask() public method

The Bitmask class
public Bitmask ( Meta meta, string iEntName, Map map, int iOffsetInChunk, int iBitCount, IFPIO ioptions, int iLineNumber ) : System
meta HaloMap.Meta.Meta The controls meta data
iEntName string The identifying name of the meta string
map HaloMap.Map.Map The metas map file
iOffsetInChunk int The offset to the string in the memory stream
iBitCount int 8 for Bitmask8, 16 for Bitmask16, 32 for Bitmask32 types
ioptions HaloMap.Plugins.IFPIO The array of options available
iLineNumber int
return System
        public Bitmask(Meta meta, string iEntName, Map map, int iOffsetInChunk, int iBitCount, IFPIO.Option[] ioptions, int iLineNumber)
        {
            this.meta = meta;
            this.LineNumber = iLineNumber;
            this.Options = ioptions;
            this.Bits = new bool[iBitCount];
            this.visibleBits = new bool[iBitCount];
            this.bitCount = iBitCount;
            this.size = iBitCount / 8;
            this.chunkOffset = iOffsetInChunk;
            this.map = map;
            this.EntName = iEntName;
            InitializeComponent();
            this.label1.Text = "Bitmask" + iBitCount.ToString();
            this.label1.Left -= iBitCount.ToString().Length * 8;
            this.getLongestName();
            this.MakeControls();
            this.Size = this.PreferredSize;
            this.Dock = DockStyle.Top;
            this.Controls[0].Text = EntName;
            this.AutoSize = true;
        }