Пример #1
0
        public void RemoveGfxHeaderType(GfxHeaderType type)
        {
            for (int i = 0; i < gfxHeaderDataList.Count; i++)
            {
                if (gfxHeaderDataTypes[i] == type)
                {
                    GfxHeaderData header = gfxHeaderDataList[i];
                    gfxHeaderDataTypes.RemoveAt(i);
                    gfxHeaderDataList.RemoveAt(i);

                    CheckGfxHeaderTilesToUpdate(header);

                    i--;
                }
            }
            gfxModified = true;
        }
Пример #2
0
        public void AddGfxHeader(GfxHeaderData header, GfxHeaderType group)
        {
            int i = 0;

            while (i < gfxHeaderDataTypes.Count && gfxHeaderDataTypes[i] <= group)
            {
                i++;
            }
            gfxHeaderDataList.Insert(i, header);
            gfxHeaderDataTypes.Insert(i, group);
            if (!gfxModified && i == gfxHeaderDataTypes.Count - 1)
            {
                LoadGfxHeader(header);
            }
            else
            {
                gfxModified = true;
            }

            CheckGfxHeaderTilesToUpdate(header);
        }
Пример #3
0
        public void AddGfxHeader(GfxHeaderData header, GfxHeaderType group)
        {
            int i = 0;
            while (i < gfxHeaderDataTypes.Count && gfxHeaderDataTypes[i] <= group)
                i++;
            gfxHeaderDataList.Insert(i, header);
            gfxHeaderDataTypes.Insert(i, group);
            if (!gfxModified && i == gfxHeaderDataTypes.Count-1)
                LoadGfxHeader(header);
            else
                gfxModified = true;

            CheckGfxHeaderTilesToUpdate(header);
        }
Пример #4
0
        public void RemoveGfxHeaderType(GfxHeaderType type)
        {
            for (int i=0; i<gfxHeaderDataList.Count; i++) {
                if (gfxHeaderDataTypes[i] == type) {
                    GfxHeaderData header = gfxHeaderDataList[i];
                    gfxHeaderDataTypes.RemoveAt(i);
                    gfxHeaderDataList.RemoveAt(i);

                    CheckGfxHeaderTilesToUpdate(header);

                    i--;
                }
            }
            gfxModified = true;
        }