simplify implementation of Default for hud::IsClickable
This commit is contained in:
parent
641884fde5
commit
1344392a92
13
src/hud.rs
13
src/hud.rs
|
@ -260,7 +260,7 @@ impl Message {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Component)]
|
#[derive(Component, Default)]
|
||||||
pub struct IsClickable {
|
pub struct IsClickable {
|
||||||
pub name: Option<String>,
|
pub name: Option<String>,
|
||||||
pub pronoun: Option<String>,
|
pub pronoun: Option<String>,
|
||||||
|
@ -268,17 +268,6 @@ pub struct IsClickable {
|
||||||
pub distance: Option<f64>,
|
pub distance: Option<f64>,
|
||||||
pub disable_in_map: bool,
|
pub disable_in_map: bool,
|
||||||
}
|
}
|
||||||
impl Default for IsClickable {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self {
|
|
||||||
name: None,
|
|
||||||
pronoun: None,
|
|
||||||
displayed_mass: None,
|
|
||||||
distance: None,
|
|
||||||
disable_in_map: false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Resource)]
|
#[derive(Resource)]
|
||||||
pub struct Log {
|
pub struct Log {
|
||||||
|
|
Loading…
Reference in a new issue