opti de la mort qui tue
All checks were successful
Rust Checks / checks (push) Successful in 2m25s
Rust Checks / checks (pull_request) Successful in 2m2s

This commit is contained in:
CoCo_Sol 2024-03-21 09:28:30 +01:00
parent 4fe4bdba3f
commit cd8b181f1d
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,5 @@
//! The main entry point of the game. //! The main entry point of the game.
use bevnet::NetworkPlugin;
use bevy::prelude::*; use bevy::prelude::*;
use border_wars::camera::CameraPlugin; use border_wars::camera::CameraPlugin;
use border_wars::map::renderer::RendererPlugin; use border_wars::map::renderer::RendererPlugin;
@ -16,6 +15,5 @@ fn main() {
.add_plugins(CameraPlugin) .add_plugins(CameraPlugin)
.add_plugins(SelectTilePlugin) .add_plugins(SelectTilePlugin)
.add_plugins(NetworkingPlugin) .add_plugins(NetworkingPlugin)
.add_plugins(NetworkPlugin::new("relay.cocosol.fr".to_string()))
.run(); .run();
} }

View file

@ -1,6 +1,6 @@
//! All the code related to the networking. //! All the code related to the networking.
use bevnet::Connection; use bevnet::{Connection, NetworkPlugin};
use bevy::prelude::*; use bevy::prelude::*;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@ -14,7 +14,8 @@ pub struct NetworkingPlugin;
impl Plugin for NetworkingPlugin { impl Plugin for NetworkingPlugin {
fn build(&self, app: &mut App) { fn build(&self, app: &mut App) {
app.add_plugins(ConnectionPuglin) app.add_plugins(NetworkPlugin::new("relay.cocosol.fr".to_string()))
.add_plugins(ConnectionPuglin)
.init_resource::<AllPlayers>(); .init_resource::<AllPlayers>();
} }
} }