Stop using manual hashing for dash state #31

Merged
EIREXE merged 2 commits from dash_state_hashing into master 2026-09-15 20:21:29 +00:00
Showing only changes of commit ff6e9a8599 - Show all commits
+1 -7
View File
@@ -11,18 +11,12 @@ use crate::fighter::state::fall::FallState;
use crate::fighter::state::ground::{GroundedMotionResult, GroundedStateCommon};
use crate::input::FighterCommands::{SmashMoveLeft, SmashMoveRight};
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Hash)]
pub struct DashState {
direction: FighterFacingDirection,
pub ground_common: GroundedStateCommon,
}
impl std::hash::Hash for DashState {
fn hash<H: Hasher>(&self, state: &mut H) {
self.direction.hash(state);
}
}
impl DashState {
pub fn new(direction: FighterFacingDirection, ground_common: GroundedStateCommon) -> Self {
Self {