pub fn new(
        screen_size: Vec2,
        min_screen: Vec2,
        frame_time: Duration,
    ) -> Self {
        Self {
            sync: RwLock::new(()),
            connected: AtomicBool::new(true),
            screen: ScreenData::new(screen_size, min_screen, frame_time),
            events: event::Channel::default(),
        }
    }
/// Creates shared data from: current screen size, minimum screen size,
/// frame interval time .
Creates shared data from: current screen size, minimum screen size,
frame interval time .
Creates shared data from : current screen size minimum screen size frame interval time .
pub fn new(
        screen_size: Vec2,
        min_screen: Vec2,
        frame_time: Duration,
    ) -> Self {
        Self {
            sync: RwLock::new(()),
            connected: AtomicBool::new(true),
            screen: ScreenData::new(screen_size, min_screen, frame_time),
            events: event::Channel::default(),
        }
    }
pub fn new ( screen_size : Vec2 , min_screen : Vec2 , frame_time : Duration , ) -> Self { Self { sync : RwLock :: new ( ( ) ) , connected : AtomicBool :: new ( true ) , screen : ScreenData :: new ( screen_size , min_screen , frame_time ) , events : event :: Channel :: default ( ) , } }
Creates shared data from: current screen size, minimum screen size,
frame interval time .
Creates shared data from : current screen size minimum screen size frame interval time .
screen_size
Vec2
min_screen
Vec2
frame_time
Duration
screen_size
Vec2
min_screen
Vec2
frame_time
Duration