2023-09-04 12:28:33 -04:00
|
|
|
use crate::types::Object;
|
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
pub struct GlobalSettings<'g, 's> {
|
|
|
|
pub radio_targets: Vec<&'g Vec<Object<'s>>>,
|
2023-09-02 20:46:17 -04:00
|
|
|
}
|
|
|
|
|
2023-09-04 12:28:33 -04:00
|
|
|
impl<'g, 's> GlobalSettings<'g, 's> {
|
2023-09-02 20:46:17 -04:00
|
|
|
pub fn new() -> Self {
|
2023-09-04 12:28:33 -04:00
|
|
|
GlobalSettings {
|
|
|
|
radio_targets: Vec::new(),
|
|
|
|
}
|
2023-09-02 20:46:17 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-04 12:28:33 -04:00
|
|
|
impl<'g, 's> Default for GlobalSettings<'g, 's> {
|
2023-09-02 20:46:17 -04:00
|
|
|
fn default() -> Self {
|
|
|
|
GlobalSettings::new()
|
|
|
|
}
|
|
|
|
}
|