// Token: 0x0600001F RID: 31 RVA: 0x00003304 File Offset: 0x00001F04 private void WriteColorList(StreamHelper streamHelper, List <Color> colorList) { foreach (Color color in colorList) { PaletteBlock.WriteColor(streamHelper, color); } }
// Token: 0x06000021 RID: 33 RVA: 0x00003448 File Offset: 0x00002048 public void Write(StreamHelper streamHelper) { streamHelper.Write <int>(this.Length, ByteEncoding.None); streamHelper.Write <int>(this.Dummy, ByteEncoding.None); streamHelper.Write <int>(this.Dummy, ByteEncoding.None); streamHelper.Write <short>(this.Width, ByteEncoding.None); streamHelper.Write <short>(this.Height, ByteEncoding.None); this.PrepareColors(); int num = (this.Length - 16) / 4; if (num <= 16) { for (int i = 0; i < this.Colors.Count; i++) { PaletteBlock.WriteColor(streamHelper, this.Colors[i]); } return; } int num2 = 0; for (int j = 0; j < num / 8 / 4; j++) { List <Color> colorBlock = this.GetColorBlock(num2++); List <Color> colorBlock2 = this.GetColorBlock(num2++); List <Color> colorBlock3 = this.GetColorBlock(num2++); List <Color> colorBlock4 = this.GetColorBlock(num2++); this.WriteColorList(streamHelper, colorBlock); this.WriteColorList(streamHelper, colorBlock3); this.WriteColorList(streamHelper, colorBlock2); this.WriteColorList(streamHelper, colorBlock4); } }