Skip to main content

TileCounts

Trait TileCounts 

Source
pub trait TileCounts {
    // Required methods
    fn tile_counts(&self) -> ArrayView1<'_, NumTiles>;
    fn count_of_tile(&self, tile: Tile) -> NumTiles;
    fn update_attachment(&mut self, tile: Tile);
    fn update_detachment(&mut self, tile: Tile);
}

Required Methods§

Source

fn tile_counts(&self) -> ArrayView1<'_, NumTiles>

Source

fn count_of_tile(&self, tile: Tile) -> NumTiles

Source

fn update_attachment(&mut self, tile: Tile)

Change the tile count based on the tile attaching

Source

fn update_detachment(&mut self, tile: Tile)

Change the tile count based on the tile detaching

Implementors§