First pass at allowing multiple event types to be emitted by an entity

This commit is contained in:
Mikayla 2023-11-08 16:34:38 -08:00
parent c81440424b
commit 26fc36ee0e
No known key found for this signature in database
6 changed files with 123 additions and 74 deletions

View file

@ -75,6 +75,8 @@ where
.flatten()
}
/// Call the given callback for each subscriber to the given emitter.
/// If the callback returns false, the subscriber is removed.
pub fn retain<F>(&self, emitter: &EmitterKey, mut f: F)
where
F: FnMut(&mut Callback) -> bool,