#bevyhub #game-ai #behavior

nightly bevyhub_net

A lightweight Bevy replication library

2 releases

new 0.0.1-rc.2 Dec 18, 2024
0.0.1-rc.1 Dec 9, 2024

#88 in Robotics

Download history 149/week @ 2024-12-06 127/week @ 2024-12-13

276 downloads per month
Used in 3 crates (2 directly)

MIT/Apache

64KB
2K SLoC

bevyhub_net

This is a very tiny and simple replication library that can run on microcontrollers and be used for DOM communication.

Features

Incoming / Outgoing

Components, Events and Resources can be specified as incoming or outgoing. Components can be both because the Replicate component can be used to distinguish who should be doing the sending.

Multiple transports

For instance a web bevy app can send serde_json messages to the dom and bincode messages to the server

Limitations

  • Components must be registered in the same order for every client
  • Partial changes: on component or resource changes, the entire type is sent and applied
  • Messages are not cached, if a client joins late it misses previous messages
  • No authority determination
  • Unidirectional Resources/Events: resources and events cannot be registered as both incoming and outgoing

References

Dependencies

~30–43MB
~713K SLoC