tirbofish/dropbear · diff
refactor: got redback-runtime compilable
Signature present but could not be verified.
Unverified
@@ -87,6 +87,7 @@ bitflags = "2.10" features = "0.10" puffin_http = "0.16" dyn-clone = "1.0" +downcast-rs = "2.0" [workspace.dependencies.image] version = "0.24" @@ -46,6 +46,7 @@ bytemuck.workspace = true thiserror.workspace = true combine.workspace = true dyn-clone.workspace = true +downcast-rs.workspace = true [features] default = [] @@ -30,8 +30,11 @@ impl Component for AnimationComponent { Ok((Self::default(), )) } - async fn init(ser: Self::SerializedForm, _graphics: Arc<SharedGraphicsContext>) -> anyhow::Result<Self::RequiredComponentTypes> { - Ok((ser, )) + fn init<'a>( + ser: &'a Self::SerializedForm, + _graphics: Arc<SharedGraphicsContext>, + ) -> std::pin::Pin<Box<dyn std::future::Future<Output = anyhow::Result<Self::RequiredComponentTypes>> + Send + 'a>> { + Box::pin(async move { Ok((ser.clone(), )) }) } fn update_component(&mut self, world: &World, entity: Entity, dt: f32, graphics: Arc<SharedGraphicsContext>) { @@ -45,10 +45,18 @@ impl Component for Camera { Ok((cam, comp)) }
Large diffs are not rendered by default. Showing the first 50 of 1820 lines. Show full diff