public static PartsData Read(BinaryReader br) { PartsData ret = new PartsData(); ret.Id = br.ReadUInt32(); ret.PartCount = br.ReadUInt32(); ret.Offset = br.ReadUInt32(); ret.Parts = new PartData[ret.PartCount]; for (int i = 0; i < ret.PartCount; i++) { ret.Parts[i] = PartData.Read(br); } return(ret); }