/// Destroys the graphical representation of the board
Destroys the graphical representation of the board
Destroys the graphical representation of the board
fn cleanup_board(mut commands: Commands, tile_query: Query<Entity, With<Tile>>) {
    for entity in tile_query.iter() {
        commands.entity(entity).despawn_recursive();
    }
}
fn cleanup_board ( mut commands : Commands , tile_query : Query < Entity , With < Tile > > ) { for entity in tile_query . iter ( ) { commands . entity ( entity ) . despawn_recursive ( ) ; } }
Destroys the graphical representation of the board
Destroys the graphical representation of the board
commands
Commands
tile_query
Query<Entity, With<Tile>>