/// <summary> /// Parses combat related data /// </summary> private void parseCombatList(Stream stream) { // 64 bytes: each combat var data = new byte[64]; using (var ms = new MemoryStream(data, writable: false)) using (var reader = CreateReader(ms)) { while (true) { if (!TryRead(stream, data)) { break; } ms.Seek(0, SeekOrigin.Begin); var combatItem = ReadCombatItem(reader); combat_data.addItem(combatItem); } } }