Fix compilation warnings
This commit is contained in:
@@ -63,8 +63,4 @@ impl FighterAttributes {
|
||||
|
||||
(accel, target_vel)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct FighterAttributesLink {
|
||||
attributes: Handle<FighterAttributes>,
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
//! Resolving an integrated fighter position against the stage.
|
||||
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::fighter::state::FighterStateContext;
|
||||
use crate::math::segment::FGSegment2d;
|
||||
use crate::math::vec::FGVec2;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use bevy::prelude::*;
|
||||
use fixed::traits::Fixed;
|
||||
|
||||
use crate::math::{int::FGi32, vec::FGVec2};
|
||||
|
||||
|
||||
+2
-5
@@ -98,7 +98,6 @@ pub struct FighterVisual;
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct Fighter {
|
||||
id: FighterId,
|
||||
pub manifest: Handle<FighterManifest>,
|
||||
}
|
||||
|
||||
@@ -170,8 +169,7 @@ pub fn spawn_fighter(
|
||||
commands: &mut Commands,
|
||||
player_handle: usize,
|
||||
spawn_position: FGVec2,
|
||||
manifest: (Handle<FighterManifest>, &FighterManifest),
|
||||
_attributes: FighterAttributes,
|
||||
manifest: Handle<FighterManifest>,
|
||||
animations: FighterAnimations,
|
||||
visual_root: WorldAssetRoot,
|
||||
) {
|
||||
@@ -181,8 +179,7 @@ pub fn spawn_fighter(
|
||||
handle: player_handle,
|
||||
},
|
||||
Fighter {
|
||||
id: manifest.1.id,
|
||||
manifest: manifest.0,
|
||||
manifest: manifest,
|
||||
},
|
||||
FighterFacingDirection::Right,
|
||||
FighterECB {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
use fixed::traits::Fixed;
|
||||
|
||||
use crate::fighter::*;
|
||||
|
||||
pub fn integrate_gravity(velocity: &mut FighterVelocity, attributes: &FighterAttributes) {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
use std::hash::{Hash, Hasher};
|
||||
|
||||
use bevy::prelude::*;
|
||||
use std::hash::{Hasher};
|
||||
|
||||
use super::{FighterStateContext, FighterStateImpl, ground, run, wait, walk};
|
||||
use crate::fighter::FighterFacingDirection;
|
||||
|
||||
@@ -12,7 +12,6 @@ use crate::math::vec::FGVec2;
|
||||
use crate::stage::line::{StageLineID, StagePolyLineSegmentType};
|
||||
|
||||
use bevy::prelude::*;
|
||||
use fixed::traits::Fixed;
|
||||
|
||||
#[derive(Reflect, Hash, Clone, Debug)]
|
||||
pub struct GroundedStateCommon {
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::fighter::{
|
||||
animation::AnimKind,
|
||||
state::{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
|
||||
use bevy::prelude::*;
|
||||
|
||||
use super::{FighterStateContext, FighterStateImpl, dash, ground, wait};
|
||||
use crate::fighter::animation::AnimKind;
|
||||
use crate::fighter::state::FighterState;
|
||||
|
||||
Reference in New Issue
Block a user