use std::ops::{Deref, DerefMut};
#[derive(Default)]
pub struct Config {
pub(crate) runtime_config: javy::Config,
pub(crate) event_loop: bool,
}
impl Config {
pub fn event_loop(&mut self, enabled: bool) -> &mut Self {
self.event_loop = enabled;
self
}
}
impl Deref for Config {
type Target = javy::Config;
fn deref(&self) -> &Self::Target {
&self.runtime_config
}
}
impl DerefMut for Config {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.runtime_config
}
}