#ecs #messenger #session #bevy-hookup

bevy_hookup_messenger_self

The self messenger of the bevy_hookup library

15 stable releases

Uses new Rust 2024

2.2.1 Oct 14, 2025
2.1.2 Oct 7, 2025
2.0.8 Sep 29, 2025
1.0.1 Sep 7, 2025

#1383 in Game dev

MIT/Apache

77KB
1K SLoC

Self Messenger

The simpelst implementation of a messenger, this just streams the shared components into the same world. To make sure they end up on different entities, the Entity IDs are changed before being sent to the core library again.

This implementation can be used for singleplayer modes.

Example

All you have to do is spawn a self session into your world.

You need an implementation of TSendables like with any other session implementation.

commands.spawn(SelfSession::<Sendables>::new().to_session());

Dependencies

~21–34MB
~551K SLoC