示例#1
0
        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();
        }
示例#2
0
 public PaletteFile(GameDataManager gameDataManager, MemoryStream memoryStream, ArchiveFile archiveFile, int fileNumber) : base(gameDataManager, memoryStream, archiveFile, fileNumber)
 {
 }