Example #1
0
 public static ImportedFile ReadImportedFile(this BinaryReader reader, ImportedFilesFormatVersion formatVersion) => new ImportedFile(reader, formatVersion);
Example #2
0
 internal ImportedFiles(ImportedFilesFormatVersion formatVersion)
 {
     FormatVersion = formatVersion;
 }
Example #3
0
 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)
 {
 }
Example #5
0
 internal void WriteTo(BinaryWriter writer, ImportedFilesFormatVersion formatVersion)
 {
     writer.Write((byte)Flags);
     writer.WriteString(FullPath);
 }
Example #6
0
 internal void ReadFrom(BinaryReader reader, ImportedFilesFormatVersion formatVersion)
 {
     Flags    = reader.ReadByte <ImportedFileFlags>();
     FullPath = reader.ReadChars();
 }
Example #7
0
 public ImportedFile(BinaryReader reader, ImportedFilesFormatVersion formatVersion)
 {
     ReadFrom(reader, formatVersion);
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MapImportedFiles"/> class.
 /// </summary>
 /// <param name="formatVersion"></param>
 public MapImportedFiles(ImportedFilesFormatVersion formatVersion)
     : base(formatVersion)
 {
 }