bevy_channel_message
Send events via a channel from anywhere (eg. web-dom, c-ffi) to Bevy Observers.
Based on the original bevy_crossbeam_event but reverting to the buffered message system instead of migrating to observer/triggers as it did in 0.9
.
usage
Add add events to your app using .add_channel_message::<EventType>
:
;
Fire events by using Res<ChannelMessageSender<EventType>>
(which can be
cloned and sent into callbacks):
Handle the events just like normal Bevy events (which they are):
Our Other Crates
- bevy_channel_trigger
- bevy_debug_log
- bevy_device_lang
- bevy_web_popups
- bevy_libgdx_atlas
- bevy_ios_iap
- bevy_ios_review
- bevy_ios_gamecenter
- bevy_ios_alerts
- bevy_ios_notifications
- bevy_ios_impact
- bevy_ios_safearea
Compatible Bevy Versions
bevy | our version |
---|---|
0.17 | 0.1,main |
License
this crate is dual-licensed under either MIT or Apache 2.0, at your option.