AlbLib.Mapping.Block2D.Block2D C# (CSharp) Method

Block2D() public method

public Block2D ( Stream stream ) : System
stream Stream /// Source stream. ///
return System
        public Block2D(Stream stream)
        {
            byte width = (byte)stream.ReadByte();
            byte height = (byte)stream.ReadByte();
            data = new Tile[width,height];
            for(byte y = 0; y < height; y++)
            for(byte x = 0; x < width; x++)
            {
                data[x,y] = new Tile(x, y, stream);
            }
        }
Block2D