Пример #1
0
        public void Open(PCCPackage pcc)
        {
            int exportIndex;
            int dataOffset;

            if (!TryFindQuestMap(pcc, out exportIndex, out dataOffset))
            {
                return;
            }

            using (var stream = new MemoryStream(pcc.Exports[exportIndex].Data))
            {
                stream.Seek(dataOffset, SeekOrigin.Begin);

                var questMap = BinaryBioQuestMap.Load(stream);

                SetFromQuestMap(questMap);
            }
        }
        public void Open(IMEPackage pcc)
        {
            IExportEntry export;
            int          dataOffset;

            if (!TryFindQuestMap(pcc, out export, out dataOffset))
            {
                return;
            }

            using (var stream = new MemoryStream(export.Data))
            {
                stream.Seek(dataOffset, SeekOrigin.Begin);

                var questMap = BinaryBioQuestMap.Load(stream);

                SetFromQuestMap(questMap);
            }
        }