Skip to main content

tilemap_fill_rect

Function tilemap_fill_rect 

Source
pub fn tilemap_fill_rect(
    p: &mut Project,
    map: TileMapId,
    x0: i32,
    z0: i32,
    x1: i32,
    z1: i32,
    tile: u32,
) -> Result<usize>
Expand description

Paint an inclusive rectangle of cells. Returns how many cells were written. Capped at MAX_PAINT_CELLS so a bogus range from an agent or file cannot allocate without bound.