pub fn put(&mut self, x: usize, y: usize, edge: usize, index: u32) {
        if let 4..=7 = edge {
            self.layers[1][y * self.size + x][edge - 4] = index;
        }

        match edge {
            6 => self.rows[1][x][0] = index,
            11 => self.rows[1][x][1] = index,
            10 => self.rows[1][x][2] = index,
            _ => (),
        }

        match edge {
            5 | 10 => self.cells[1][0] = index,
            _ => (),
        }

        self.current_cell[edge] = index;
    }
/// Put an index in the cache at the given (x, y, edge) coordinate
Put an index in the cache at the given (x, y, edge) coordinate
Put an index in the cache at the given ( x y edge ) coordinate
pub fn put(&mut self, x: usize, y: usize, edge: usize, index: u32) {
        if let 4..=7 = edge {
            self.layers[1][y * self.size + x][edge - 4] = index;
        }
        match edge {
            6 => self.rows[1][x][0] = index,
            11 => self.rows[1][x][1] = index,
            10 => self.rows[1][x][2] = index,
            _ => (),
        }
        match edge {
            5 | 10 => self.cells[1][0] = index,
            _ => (),
        }
        self.current_cell[edge] = index;
    }
pub fn put ( & mut self , x : usize , y : usize , edge : usize , index : u32 ) { if let 4 ..= 7 = edge { self . layers [ 1 ] [ y * self . size + x ] [ edge - 4 ] = index ; } match edge { 6 => self . rows [ 1 ] [ x ] [ 0 ] = index , 11 => self . rows [ 1 ] [ x ] [ 1 ] = index , 10 => self . rows [ 1 ] [ x ] [ 2 ] = index , _ => ( ) , } match edge { 5 | 10 => self . cells [ 1 ] [ 0 ] = index , _ => ( ) , } self . current_cell [ edge ] = index ; }
Put an index in the cache at the given (x, y, edge) coordinate
Put an index in the cache at the given ( x y edge ) coordinate
&mut self
x
usize
y
usize
edge
usize
index
u32