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; }
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); }
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); }
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; }