public BaseFile(GameDataManager gameDataManager, MemoryStream memoryStream, ArchiveFile archiveFile, int fileNumber) { if (memoryStream == null) { throw new ArgumentException("MemoryStream cannot be null."); } GameDataManager = gameDataManager; Filename = (archiveFile != null ? archiveFile.Filename : string.Empty); InArchive = true; ArchiveFile = archiveFile; FileNumber = fileNumber; Stream = memoryStream; OriginalStreamType = Stream.GetType(); Parse(); }
public PaletteFile(GameDataManager gameDataManager, MemoryStream memoryStream, ArchiveFile archiveFile, int fileNumber) : base(gameDataManager, memoryStream, archiveFile, fileNumber) { }