#NEWLINE# def read_tile( world_version , stream ) : #NEWLINE# #INDENT# if ( world_version < 6 ) : #NEWLINE# #INDENT# values = struct . unpack ( '>hBBhBhBBhBBHBhBB?' , stream . read ( 23 ) ) #NEWLINE# values = ( ( values [ : 12 ] + ( 0 , 0 ) ) + values [ 12 : ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# values = struct . unpack ( '>hBBhBhBBhBBffBBhBB?' , stream . read ( 30 ) ) #NEWLINE# #UNINDENT# return Tile ( * values )