Пример #1
0
        IcnD2Tile[] ParseFrames(Stream s)
        {
            var start = s.Position;

            ReadTables(s);

            var tiles = new IcnD2Tile[numTiles];

            s.Position = ssetOffset;
            for (var i = 0; i < tiles.Length; i++)
            {
                tiles[i] = new IcnD2Tile(s, rpal[rtbl[i]]);
            }

            s.Position = start;
            return(tiles);
        }
Пример #2
0
        IcnD2Tile[] ParseFrames(Stream s)
        {
            var start = s.Position;

            ReadTables(s);

            var tiles = new IcnD2Tile[numTiles];
            s.Position = ssetOffset;
            for (var i = 0; i < tiles.Length; i++)
                tiles[i] = new IcnD2Tile(s, rpal[rtbl[i]]);

            s.Position = start;
            return tiles;
        }