Fix warnings
This commit is contained in:
parent
f3d95eaf3b
commit
df63d0d0d5
@ -41,4 +41,3 @@ draw_pass_1 = SubResource("TubeTrailMesh_wwb7k")
|
|||||||
|
|
||||||
[node name="hit_sound" type="AudioStreamPlayer3D" parent="." unique_id=345049143]
|
[node name="hit_sound" type="AudioStreamPlayer3D" parent="." unique_id=345049143]
|
||||||
stream = ExtResource("1_2hdmt")
|
stream = ExtResource("1_2hdmt")
|
||||||
volume_db = 80.0
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
|
|
||||||
use godot::{global::godot_print, obj::Singleton};
|
use godot::obj::Singleton;
|
||||||
use teanet::PeerMessage;
|
use teanet::PeerMessage;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|||||||
@ -2,9 +2,8 @@ use std::{f32::consts::PI, ops::Neg};
|
|||||||
|
|
||||||
use godot::{
|
use godot::{
|
||||||
classes::{
|
classes::{
|
||||||
Button, Camera3D, CharacterBody3D, CollisionShape3D, GpuParticles3D, ICharacterBody3D,
|
Button, Camera3D, CharacterBody3D, CollisionShape3D, ICharacterBody3D, Input, InputEvent,
|
||||||
Input, InputEvent, InputEventMouseMotion, Label, Label3D, Panel, PanelContainer,
|
InputEventMouseMotion, Label, Label3D, Panel, PanelContainer, input::MouseMode,
|
||||||
input::MouseMode,
|
|
||||||
},
|
},
|
||||||
obj::WithBaseField,
|
obj::WithBaseField,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
|
|||||||
@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
use crate::{
|
use crate::{
|
||||||
ball::Ball,
|
ball::Ball,
|
||||||
game_manager::{Game, GameOption},
|
game_manager::{Game, GameOption},
|
||||||
net::{network_manager::NetworkManager, util::cast_ray},
|
net::util::cast_ray,
|
||||||
player::{DamageSource, IPlayer},
|
player::{DamageSource, IPlayer},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,14 +1,11 @@
|
|||||||
use godot::{
|
use godot::{
|
||||||
classes::{
|
classes::{Button, HBoxContainer, IPanel, Label, Panel},
|
||||||
Button, HBoxContainer, IPanel, Label, Panel, VBoxContainer, box_container::AlignmentMode,
|
|
||||||
},
|
|
||||||
global::HorizontalAlignment,
|
|
||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
game_manager::{Game, GameManager},
|
game_manager::{Game, GameManager},
|
||||||
ui::{player_listing::PlayerListing, player_listings::PlayerListings},
|
ui::player_listings::PlayerListings,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(GodotClass)]
|
#[derive(GodotClass)]
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
use godot::{
|
use godot::{
|
||||||
classes::{CompressedTexture2D, HBoxContainer, IHBoxContainer, Label, Texture2D, TextureRect},
|
classes::{HBoxContainer, IHBoxContainer, Label, Texture2D, TextureRect},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -5,10 +5,7 @@ use godot::{
|
|||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{game_settings::GameSettingsManager, ui::slider::SliderContainer};
|
||||||
game_settings::{GameSettings, GameSettingsManager},
|
|
||||||
ui::slider::SliderContainer,
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, PartialOrd, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, PartialOrd, Eq, Hash)]
|
||||||
pub enum Setting {
|
pub enum Setting {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user