using NetMFAPatcher.Utils; using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NetMFAPatcher.Chunks { public class AppIcon { ByteIO reader; List points; public AppIcon(ByteIO reader) { this.reader = reader; } public void Read() { reader.ReadBytes(reader.ReadInt32() - 4); var color_indexes = new byte[16 * 16 * 3]; for (int i = 0; i < 16*16; i++) { var b = reader.ReadByte(); var g = reader.ReadByte(); var r = reader.ReadByte(); reader.ReadSByte(); color_indexes.Append(r); color_indexes.Append(g); color_indexes.Append(b); } points = new List(); for (int y = 0; y < 16; y++) { var x_list = new List(); for (int x = 0; x < 16; x++) { x_list.Add(color_indexes[reader.ReadByte()]); } //var points = x_list.// this.points; //how to add lists? } Dump(); } public void Dump() { } } }