protected override void WriteTrainerId(BinaryWriter binaryWriter) { if (null != TrainerID) { TrainerID.WriteToBinary(binaryWriter); } }
protected override void ReadTrainerId(BinaryReader binaryReader, long startOffset, GameIDs gameID) { if (null == TrainerID) { TrainerID = new TrainerId(); } binaryReader.BaseStream.Seek(startOffset + (long)Offsets.TrainerID, SeekOrigin.Begin); TrainerID.ReadFromBinary(binaryReader, gameID); }