public BnfoCustomerItems Clone(Bnfo newparent) { BnfoCustomerItems ret = new BnfoCustomerItems(newparent); foreach (BnfoCustomerItem s in list) { ret.Add(s); } return(ret); }
protected override void Unserialize(System.IO.BinaryReader reader) { ver = reader.ReadUInt32(); level1 = reader.ReadUInt32(); level2 = reader.ReadUInt32(); unk1 = reader.ReadUInt32(); unk2 = reader.ReadUInt32(); empct = reader.ReadUInt32(); int ct = reader.ReadInt32(); citems.Clear(); for (int i = 0; i < ct; i++) { BnfoCustomerItem item = new BnfoCustomerItem(this); item.Unserialize(reader); citems.Add(item); } #if TRACE Console.WriteLine("Employes: " + empct.ToString()); Console.WriteLine("Server Customers: " + ct.ToString()); #endif long pos = reader.BaseStream.Position; over = reader.ReadBytes((int)(reader.BaseStream.Length - pos)); reader.BaseStream.Seek(pos, System.IO.SeekOrigin.Begin); ct = reader.ReadInt32(); for (int i = 0; i < ct; i++) { reader.ReadBytes(86); } #if TRACE Console.WriteLine("Employes: " + reader.BaseStream.Position.ToString("X")); #endif }