Checkpoint

This commit is contained in:
Nathan Sobo 2023-09-28 01:16:42 -06:00
parent 13ba450c4c
commit 5ab1034698
5 changed files with 63 additions and 32 deletions

View file

@ -275,10 +275,7 @@ impl<'a, 'w, T: Send + Sync + 'static> ViewContext<'a, 'w, T> {
}
pub fn handle(&self) -> WeakHandle<T> {
WeakHandle {
id: self.entity_id,
entity_type: PhantomData,
}
self.entities.weak_handle(self.entity_id)
}
pub fn observe<E: Send + Sync + 'static>(