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