mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 21:58:20 -06:00
fix warnings; remove unused imports
This commit is contained in:
parent
c8ff48d34b
commit
3f77dfc099
|
@ -1,4 +1,4 @@
|
||||||
use shipyard::{UniqueViewMut, UniqueView, View, IntoIter, ViewMut, EntitiesViewMut, Component, Workload, IntoWorkload};
|
use shipyard::{UniqueViewMut, UniqueView, View, IntoIter, ViewMut, EntitiesViewMut, Workload, IntoWorkload};
|
||||||
use glium::glutin::event::VirtualKeyCode;
|
use glium::glutin::event::VirtualKeyCode;
|
||||||
use kubi_shared::{
|
use kubi_shared::{
|
||||||
block::Block,
|
block::Block,
|
||||||
|
|
|
@ -5,10 +5,9 @@ use kubi_shared::{
|
||||||
messages::{ClientToServerMessage, ServerToClientMessage, S_SERVER_HELLO},
|
messages::{ClientToServerMessage, ServerToClientMessage, S_SERVER_HELLO},
|
||||||
state::ClientJoinState,
|
state::ClientJoinState,
|
||||||
channels::CHANNEL_AUTH,
|
channels::CHANNEL_AUTH,
|
||||||
client::Username,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use crate::player::{MainPlayer, spawn_local_player_multiplayer, spawn_remote_player_multiplayer};
|
use crate::player::{spawn_local_player_multiplayer, spawn_remote_player_multiplayer};
|
||||||
use super::{UdpClient, NetworkEvent};
|
use super::{UdpClient, NetworkEvent};
|
||||||
|
|
||||||
pub fn set_client_join_state_to_connected(
|
pub fn set_client_join_state_to_connected(
|
||||||
|
@ -20,10 +19,8 @@ pub fn set_client_join_state_to_connected(
|
||||||
|
|
||||||
pub fn say_hello(
|
pub fn say_hello(
|
||||||
mut client: UniqueViewMut<UdpClient>,
|
mut client: UniqueViewMut<UdpClient>,
|
||||||
main_player: View<MainPlayer>,
|
|
||||||
username: View<Username>
|
|
||||||
) {
|
) {
|
||||||
let username = "XxX-FishFucker-69420-XxX".into(); //(&main_player, &username).iter().next().unwrap().1.0.clone();
|
let username = "XxX-FishFucker-69420-XxX".into();
|
||||||
let password = None;
|
let password = None;
|
||||||
log::info!("Authenticating");
|
log::info!("Authenticating");
|
||||||
client.0.send(
|
client.0.send(
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use strum::IntoEnumIterator;
|
use strum::IntoEnumIterator;
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use std::{fs::File, path::PathBuf, io::BufReader};
|
use std::{path::PathBuf, io::BufReader};
|
||||||
use glium::{texture::{SrgbTexture2dArray, RawImage2d, MipmapsOption}, backend::Facade};
|
use glium::{texture::{SrgbTexture2dArray, RawImage2d, MipmapsOption}, backend::Facade};
|
||||||
use crate::filesystem::open_asset;
|
use crate::filesystem::open_asset;
|
||||||
use super::AssetPaths;
|
use super::AssetPaths;
|
||||||
|
|
Loading…
Reference in a new issue