Beispiel #1
0
        static Extract()
        {
            var texHeaderReader          = new TexHeaderReader();
            var texMipmapDecompressor    = new TexMipmapDecompressor();
            var texMipmapReader          = new TexMipmapReader(texMipmapDecompressor);
            var texMipmapContainerReader = new TexMipmapContainerReader(texMipmapReader);

            _texReader            = new TexReader(texHeaderReader, texMipmapContainerReader);
            _texJsonInfoGenerator = new TexJsonInfoGenerator();

            _packageReader = new PackageReader();
        }
        protected void SetUp()
        {
            BasePath =
                AppContext.BaseDirectory.Split(new[] { "RePKG.Tests" }, StringSplitOptions.RemoveEmptyEntries)[0] +
                "RePKG.Tests";

            Directory.CreateDirectory($"{BasePath}\\{OutputDirectoryName}\\");
            Directory.CreateDirectory($"{BasePath}\\{ValidatedDirectoryName}\\");

            var headerReader       = new TexHeaderReader();
            var mipmapDecompressor = new TexMipmapDecompressor();
            var mipmapReader       = new TexMipmapReader(mipmapDecompressor);
            var containerReader    = new TexMipmapContainerReader(mipmapReader);

            _reader = new TexReader(headerReader, containerReader);
        }