示例#1
0
 public override void Close()
 {
     IOStream.Seek(0, SeekOrigin.Begin);
     Palettes = null;
     Textures = null;
     _disposables.Dispose();
 }
示例#2
0
        public override void Open()
        {
            Close();

            using (Stream palettesStream = IOStream.GetStreamSegment(4096, MimPalettes.Size))
                Palettes = MimPalettes.Read(palettesStream);

            Stream textureStream = _disposables.Add(IOStream.GetStreamSegment(12288));

            Textures = new MimTextures(textureStream);
        }