Split crates
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 7m49s

This commit is contained in:
Florian RICHER 2025-05-18 13:15:29 +02:00
parent 99be029ff8
commit b977f446d3
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
16 changed files with 84 additions and 110 deletions

View file

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