public TesRecord(TesFileReader fr, bool readFiled = true) { Header = new TesHeader(fr); OutputItems.Add(Header); if (readFiled) { if (Header.Signature == "NAVM" || Header.Signature == "LAND") { OutputItems.Add(new TesBytes(fr.GetBytes(Header.DataSize))); } else { while (!fr.EOF) { TesField field = ReadField(fr) ?? new TesField(fr.GetField()); AddField(field); } } } }
public TesRecord(string signature, uint fromID) { Header = new TesHeader(signature, fromID); OutputItems.Add(Header); }