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

Save() public method

public Save ( ) : void
return void
        public override void Save()
        {
            if (this.isNulledOutReflexive == true)
                return;
            bool openedMap = false;
            if (map.isOpen == false)
            {
                map.OpenMap(MapTypes.Internal);
                openedMap = true;
            }
            this.identInt32 = map.Functions.ForMeta.FindByNameAndTagType(this.tagType, this.tagName);

            map.BW.BaseStream.Position = this.offsetInMap;
            if (this.doesHaveTagType == true)
            {
                if (this.tagType != "null")
                {
                    List<char> tempList = new List<char>(0);
                    tempList.AddRange(this.tagType.ToCharArray(0, 4));
                    tempList.TrimExcess();
                    tempList.Reverse();
                    char[] tempchar = tempList.ToArray();
                    map.BW.Write(tempchar);
                }
            }
            map.BW.Write(this.identInt32);
            if (openedMap == true)
                map.CloseMap();
        }