public static ImportedFile ReadImportedFile(this BinaryReader reader, ImportedFilesFormatVersion formatVersion) => new ImportedFile(reader, formatVersion);
internal ImportedFiles(ImportedFilesFormatVersion formatVersion) { FormatVersion = formatVersion; }
public static void Write(this BinaryWriter writer, ImportedFile importedFile, ImportedFilesFormatVersion formatVersion) => importedFile.WriteTo(writer, formatVersion);
/// <summary> /// Initializes a new instance of the <see cref="CampaignImportedFiles"/> class. /// </summary> /// <param name="formatVersion"></param> public CampaignImportedFiles(ImportedFilesFormatVersion formatVersion) : base(formatVersion) { }
internal void WriteTo(BinaryWriter writer, ImportedFilesFormatVersion formatVersion) { writer.Write((byte)Flags); writer.WriteString(FullPath); }
internal void ReadFrom(BinaryReader reader, ImportedFilesFormatVersion formatVersion) { Flags = reader.ReadByte <ImportedFileFlags>(); FullPath = reader.ReadChars(); }
public ImportedFile(BinaryReader reader, ImportedFilesFormatVersion formatVersion) { ReadFrom(reader, formatVersion); }
/// <summary> /// Initializes a new instance of the <see cref="MapImportedFiles"/> class. /// </summary> /// <param name="formatVersion"></param> public MapImportedFiles(ImportedFilesFormatVersion formatVersion) : base(formatVersion) { }