use std::sync::Arc; use bevy_ecs::resource::Resource; use winit::{event_loop::EventLoopProxy, window::Window}; #[derive(Resource)] pub struct EventLoopProxyWrapper(EventLoopProxy); impl EventLoopProxyWrapper { pub fn new(event_loop: EventLoopProxy) -> Self { Self(event_loop) } pub fn proxy(&self) -> &EventLoopProxy { &self.0 } } #[derive(Resource, Clone)] pub struct DisplayHandleWrapper(pub winit::event_loop::OwnedDisplayHandle); #[derive(Resource, Clone)] pub struct WindowWrapper(pub Arc);