You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: debug_draw.rs
    path of file: ./repos/oxidized_navigation/src
    
    the code of the file until where you have to start completion: //! Module for debug draws.
use bevy::{
    prelude::{
        any_with_component, App, Color, Commands, Component, Entity, Gizmos, IntoSystemConfigs,
        Plugin, Query, ReflectResource, Res, Resource, Update, Vec3,
    },
    reflect::Reflect,
    time::{Time, Timer},
};

use crate::NavMesh;

pub struct O
    
fn draw_nav_mesh_system(nav_mesh: Res<NavMesh>, mut gizmos: Gizmos) {
    if let Ok(nav_mesh) = nav_mesh.get().read() {
        for (tile_coord, tile) in nav_mesh.get_tiles().iter() {
            let tile_color = Color::Rgba {
                red: 0.0,
                green: (tile_coord.x % 10) as f32 / 10.0,
                blue: (tile_coord.y % 10) as f32 / 10.0,
                alpha: 1.0,
            };
            // Draw polygons.
            for poly in tile.polygons.iter() {
                let indices = &poly.indices;
                for i in 0..indices.len() {
                    let a = tile.vertices[indices[i] as usize];
                    let b = tile.vertices[indices[(i + 1) % indices.len()] as usize];
                    gizmos.line(a, b, tile_color);
                }
            }

            // Draw vertex points.
            for vertex in tile.vertices.iter() {
                gizmos.line(*vertex, *vertex + Vec3::Y, tile_color);
            }
        }
    }
}