private WriteLevel ( |
||
fs | ||
return | 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 );
}
}
}