simplify implementation of Default for hud::IsClickable

This commit is contained in:
yuni 2024-11-30 00:43:37 +01:00
parent 641884fde5
commit 1344392a92

View file

@ -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 {