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

Ident() public method

The (Tag Type &) Ident Class
public Ident ( Meta meta, string iEntName, Map map, int iOffsetInChunk, bool idoesHaveTagType, int iLineNumber ) : System
meta Meta The controls meta data
iEntName string The identifying name of the meta string
map Map The metas map file
iOffsetInChunk int The offset to the string in the memory stream
idoesHaveTagType bool States whether there is a preceding Tag Type or just an Ident
iLineNumber int The associated line number
return System
        public Ident(Meta meta, string iEntName, Map map, int iOffsetInChunk, bool idoesHaveTagType, int iLineNumber)
        {
            InitializeComponent();
            this.meta = meta;
            this.LineNumber = iLineNumber;
            this.doesHaveTagType = idoesHaveTagType;

            // Even though !iDoesHaveTagType does not save a Tag Type, it is still loaded through the Ident
            if (!idoesHaveTagType)
                this.label1.Text = "Ident";
            this.size = 4 + (this.doesHaveTagType ? 4 : 0);
            this.map = map;
            this.EntName = iEntName;
            // Offset - 4 to account for Tag Type if applicable
            this.chunkOffset = iOffsetInChunk - (idoesHaveTagType ? 4 : 0);
            this.label4.Text = EntName;
            this.Dock = DockStyle.Top;
            //this.Size = this.PreferredSize;
            this.AutoSize = false;
        }