1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use fyrox::core::reflect::prelude::*;
use serde::{Deserialize, Serialize};

#[derive(Deserialize, Serialize, PartialEq, Clone, Debug, Reflect)]
pub struct NavmeshSettings {
    #[reflect(
        description = "Show all navigational meshes in scene. With this function turned off, only currently edited navmesh will be shown."
    )]
    pub draw_all: bool,

    #[reflect(description = "Radius of a nav mesh vertex.")]
    pub vertex_radius: f32,
}

impl Default for NavmeshSettings {
    fn default() -> Self {
        Self {
            draw_all: true,
            vertex_radius: 0.2,
        }
    }
}