Пример #1
0
        public object Load(DataSourceBase ds, List <FormatParameter> parameters)
        {
            //Remember to set source stream to begining
            ds.Stream.Seek(0, SeekOrigin.Begin);

            var tileSetBuilder = TileSetBuilder.NewTileSet();
            var blkReader      = new BLKReader(tileSetBuilder);

            return(blkReader.Read(ds.Stream));
        }
Пример #2
0
        public object Load(DataSourceBase ds, List <FormatParameter> parameters)
        {
            var tileSize    = (int)parameters.FirstOrDefault(item => item.Name == "TILE_SIZE").Value;
            var bitPlanesNo = (int)parameters.FirstOrDefault(item => item.Name == "BIT_PLANES_NO").Value;

            //Remember to set source stream to begining
            ds.Stream.Seek(0, SeekOrigin.Begin);

            var tileSetBuilder = TileSetBuilder.NewTileSet();
            var reader         = new ACBMTileSetReader(tileSetBuilder, tileSize, bitPlanesNo);

            return(reader.Read(ds.Stream));
        }