Clean up some unused imports
This commit is contained in:
parent
9385e1d3bb
commit
bdbc8df1c7
@ -1,5 +1,3 @@
|
||||
use std::net::SocketAddr;
|
||||
|
||||
use godot::prelude::*;
|
||||
|
||||
pub mod game_manager;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use godot::{classes::CharacterBody3D, prelude::*};
|
||||
|
||||
use crate::{
|
||||
game_manager::{Game, Player},
|
||||
game_manager::Game,
|
||||
player::{IPlayer, LocalPlayer, NetPlayerTransform, RemotePlayer},
|
||||
};
|
||||
|
||||
|
||||
@ -13,8 +13,6 @@ pub struct MapResource {
|
||||
|
||||
#[godot_api]
|
||||
impl IResource for MapResource {
|
||||
fn on_notification(&mut self, what: godot::classes::notify::ObjectNotification) {}
|
||||
|
||||
fn to_string(&self) -> GString {
|
||||
"Hello there".to_gstring()
|
||||
}
|
||||
@ -22,6 +20,4 @@ impl IResource for MapResource {
|
||||
fn setup_local_to_scene(&mut self) {}
|
||||
|
||||
fn reset_state(&mut self) {}
|
||||
|
||||
fn set_path_cache(&self, path: GString) {}
|
||||
}
|
||||
|
||||
@ -6,10 +6,10 @@ use std::{
|
||||
|
||||
use godot::{prelude::*, tools::get_autoload_by_name};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use teanet::{Peer, PeerConfig, PeerMessage, connections::Connection};
|
||||
use teanet::{Peer, PeerConfig};
|
||||
|
||||
use crate::{
|
||||
game_manager::{Game, GameManager, NetPlayer, Player},
|
||||
game_manager::{Game, GameManager, NetPlayer},
|
||||
net::{net_stats::Stats, util::NetVector3},
|
||||
player::NetPlayerTransform,
|
||||
ui::cli::{CliColor, CommandLinePanel},
|
||||
|
||||
@ -2,9 +2,8 @@ use std::{f32::consts::PI, ops::Neg};
|
||||
|
||||
use godot::{
|
||||
classes::{
|
||||
AudioStreamPlayer3D, Camera3D, CharacterBody3D, CollisionShape3D, GpuParticles3D,
|
||||
ICharacterBody3D, Input, InputEvent, InputEventMouseMotion, Label,
|
||||
PhysicsRayQueryParameters3D, input::MouseMode,
|
||||
Camera3D, CharacterBody3D, CollisionShape3D, GpuParticles3D, ICharacterBody3D, Input,
|
||||
InputEvent, InputEventMouseMotion, Label, input::MouseMode,
|
||||
},
|
||||
obj::WithBaseField,
|
||||
prelude::*,
|
||||
@ -23,7 +22,7 @@ use crate::{
|
||||
},
|
||||
soldier_mesh::SoldierMesh,
|
||||
ui::cli::CommandLinePanel,
|
||||
weapon::{Raygun, Weapon},
|
||||
weapon::Weapon,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
use godot::{
|
||||
classes::{
|
||||
AnimationNodeBlendSpace2D, AnimationPlayer, AnimationTree, ISkeletonModifier3D, Skeleton3D,
|
||||
SkeletonModifier3D,
|
||||
},
|
||||
classes::{AnimationTree, Skeleton3D},
|
||||
prelude::*,
|
||||
};
|
||||
|
||||
|
||||
@ -1,7 +1,4 @@
|
||||
use godot::{
|
||||
classes::{AudioStreamPlayer3D, GpuParticles3D, PhysicsRayQueryParameters3D},
|
||||
prelude::*,
|
||||
};
|
||||
use godot::{classes::AudioStreamPlayer3D, prelude::*};
|
||||
|
||||
use crate::{game_manager::Game, net::util::cast_ray, player::IPlayer};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user