DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

343934c69a20354b4f27ed5b68cfa05976c1580a — Jonni Liljamo 1 year, 9 months ago 2712d87
chore(client): remove unused init_networking
1 files changed, 1 insertions(+), 10 deletions(-)

M client/src/main.rs
M client/src/main.rs => client/src/main.rs +1 -10
@@ 13,9 13,7 @@ use bevy::{
use bevy_console::{ConsoleConfiguration, ConsolePlugin, ToggleConsoleKey};
use bevy_inspector_egui::quick::WorldInspectorPlugin;
use iyes_loopless::prelude::*;
use naia_bevy_client::{
    Client as NaiaClient, ClientConfig as NaiaClientConfig, Plugin as NaiaClientPlugin,
};
use naia_bevy_client::{ClientConfig as NaiaClientConfig, Plugin as NaiaClientPlugin};

use laurelin_shared::server::protocol::protocol;



@@ 112,13 110,6 @@ fn main() {
    app.run();
}

fn init_networking(mut commands: Commands, mut client: NaiaClient) {
    info!("Laurelin client connecting");

    // TODO: un-hardcode this
    client.connect("http://127.0.0.1:14191");
}

fn setup(mut commands: Commands) {
    // Spawn a camera
    commands.spawn(Camera3dBundle::default());