A simple networking plugin for bevy.
- You can choose TCP or UDP protocol. Adding your own protocols is as easy as implementing a few traits.
- Multiple clients/servers with different configs (specifies a protocol, packet types, serializer, etc.)
- De/serialization. You choose a serialization format, packet type (you probably want it to be
enum), and receive events with deserialized packets.
Note: Everything in bevy_slinet is feature-gated. Make sure to enable features you need (
client,server,protocol_tcp,protocol_udp,serializer_bincode,serializer_bincode_serde).
Note: you should implement keep-alive and disconnection systems yourself, or look at lobby_and_battle_servers example
| Plugin Version | Bevy Version |
|---|---|
0.9 |
0.13 |
0.10 |
0.13 |
0.11 |
0.14 |
0.12 |
0.14 |
0.13 |
0.15 |
0.14 |
0.16 |
0.15 |
0.17 |
0.16 |
0.17 |
main |
0.17 |