Compare commits

..
Author SHA1 Message Date
EIREXE 4180882af5 Fix Rust CI cache reuse
CI / build-and-test (pull_request) Successful in 11m10s
2026-09-15 20:19:48 +02:00
EIREXE ff6e9a8599 Stop using manual hashing for dash state
CI / build-and-test (pull_request) Failing after 14m25s
2026-09-15 20:01:39 +02:00
+1 -9
View File
@@ -1,5 +1,3 @@
use std::hash::Hasher;
use super::{ use super::{
CollisionContext, EnterContext, FighterStateImpl, InterruptContext, UpdateContext, ground, run, CollisionContext, EnterContext, FighterStateImpl, InterruptContext, UpdateContext, ground, run,
wait, walk, wait, walk,
@@ -11,18 +9,12 @@ use crate::fighter::state::fall::FallState;
use crate::fighter::state::ground::{GroundedMotionResult, GroundedStateCommon}; use crate::fighter::state::ground::{GroundedMotionResult, GroundedStateCommon};
use crate::input::FighterCommands::{SmashMoveLeft, SmashMoveRight}; use crate::input::FighterCommands::{SmashMoveLeft, SmashMoveRight};
#[derive(Debug, Clone)] #[derive(Debug, Clone, Hash)]
pub struct DashState { pub struct DashState {
direction: FighterFacingDirection, direction: FighterFacingDirection,
pub ground_common: GroundedStateCommon, pub ground_common: GroundedStateCommon,
} }
impl std::hash::Hash for DashState {
fn hash<H: Hasher>(&self, state: &mut H) {
self.direction.hash(state);
}
}
impl DashState { impl DashState {
pub fn new(direction: FighterFacingDirection, ground_common: GroundedStateCommon) -> Self { pub fn new(direction: FighterFacingDirection, ground_common: GroundedStateCommon) -> Self {
Self { Self {