fCraft.Level.WriteLevel C# (CSharp) 메소드

WriteLevel() 개인적인 메소드

private WriteLevel ( FileStream fs ) : void
fs System.IO.FileStream
리턴 void
        void WriteLevel( FileStream fs ) {
            GZipStream zs = new GZipStream( fs, CompressionMode.Compress );
            for( int x = 0; x < widthX; x++ ) {
                for( int y = 0; y < widthY; y++ ) {
                    zs.Write( blocks[x][y], 0, (int)height );
                }
            }
        }