Fix some warnings
This commit is contained in:
parent
4f9e24f5ab
commit
87c09dd98b
@ -20,7 +20,6 @@ use crate::{
|
|||||||
},
|
},
|
||||||
util::{NetVector3, cast_ray},
|
util::{NetVector3, cast_ray},
|
||||||
},
|
},
|
||||||
player_hand_remover::PlayerHandRemover,
|
|
||||||
soldier_mesh::SoldierMesh,
|
soldier_mesh::SoldierMesh,
|
||||||
ui::cli::CommandLinePanel,
|
ui::cli::CommandLinePanel,
|
||||||
weapon::{BallWeapon, Raygun, Weapon, WeaponType},
|
weapon::{BallWeapon, Raygun, Weapon, WeaponType},
|
||||||
|
|||||||
@ -13,7 +13,7 @@ pub struct PlayerHandRemover {
|
|||||||
|
|
||||||
#[godot_api]
|
#[godot_api]
|
||||||
impl ISkeletonModifier3D for PlayerHandRemover {
|
impl ISkeletonModifier3D for PlayerHandRemover {
|
||||||
fn process_modification_with_delta(&mut self, delta: f64) {
|
fn process_modification_with_delta(&mut self, _delta: f64) {
|
||||||
if self.active {
|
if self.active {
|
||||||
if let Some(mut skeleton) = self.base_mut().get_skeleton() {
|
if let Some(mut skeleton) = self.base_mut().get_skeleton() {
|
||||||
let uar = skeleton.find_bone("UA.R");
|
let uar = skeleton.find_bone("UA.R");
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
use godot::{meta::Element, prelude::*};
|
use godot::prelude::*;
|
||||||
|
|
||||||
#[derive(GodotClass)]
|
#[derive(GodotClass)]
|
||||||
#[class(base=Resource, init, tool)]
|
#[class(base=Resource, init, tool)]
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
use godot::{
|
use godot::{
|
||||||
classes::{GridContainer, IGridContainer, Label, OptionButton, TextEdit},
|
classes::{GridContainer, IGridContainer, Label, OptionButton},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -142,7 +142,7 @@ pub struct BallWeapon {
|
|||||||
|
|
||||||
#[godot_dyn]
|
#[godot_dyn]
|
||||||
impl Weapon for BallWeapon {
|
impl Weapon for BallWeapon {
|
||||||
fn shoot(&mut self, player_rid: Rid, player_id: u16, to: Vector3, deal_damage: bool) {}
|
fn shoot(&mut self, _: Rid, _: u16, _: Vector3, _: bool) {}
|
||||||
|
|
||||||
fn get_type(&self) -> WeaponType {
|
fn get_type(&self) -> WeaponType {
|
||||||
WeaponType::Ball
|
WeaponType::Ball
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user