| Crates.io | bevygap_client_plugin |
| lib.rs | bevygap_client_plugin |
| version | 0.3.1 |
| created_at | 2024-12-19 14:06:04.18995+00 |
| updated_at | 2024-12-23 10:31:20.873491+00 |
| description | Plugin for bevy games for use with bevygap matchmaker and lightyear |
| homepage | https://github.com/RJ/bevygap |
| repository | |
| max_upload_size | |
| id | 1489197 |
| size | 170,252 |
Instead of connecting lightyear using commands.connect_client(), this plugin will
make a request to the bevygap matchmaker, then modify lightyear's config to set the supplied
game server socket address and connect token, then call commands.connect_client() for you.
Read the bevygap book to learn more.
use bevy_bevygap_client_plugin::prelude::*;
// ...
app.add_plugins(BevygapClientPlugin);
// ...
// trigger the connection by setting state to `BevygapClientState::Request`
// or use this function on Commands:
commands.bevygap_connect_client();