Skip to main content

encode_tile_request

Function encode_tile_request 

Source
pub fn encode_tile_request(x: i32, z: i32, world: &WorldBlock) -> [u8; 24]
Expand description

Encodes a tile request (message 3, spec 3.3): tile x and z, then the tile’s min and max x and z as float(x) * tileWidth, float(z) * tileHeight, float(x + 1) * tileWidth and float(z + 1) * tileHeight.