| Crates.io | bevy_hookup_messenger_self |
| lib.rs | bevy_hookup_messenger_self |
| version | 2.2.1 |
| created_at | 2025-09-07 14:09:36.332598+00 |
| updated_at | 2025-10-14 11:25:54.298368+00 |
| description | The self messenger of the bevy_hookup library |
| homepage | |
| repository | https://github.com/Schoggi0815/bevy_hookup |
| max_upload_size | |
| id | 1828159 |
| size | 138,511 |
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.
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());