Spread state context architecture (Fixes #18)
CI / build-and-test (pull_request) Failing after 35m52s

This commit is contained in:
2026-09-15 19:10:57 +02:00
parent cd9c39b70c
commit 371c3e6a84
15 changed files with 384 additions and 302 deletions
+11 -3
View File
@@ -33,7 +33,8 @@ pub use motion::{
};
use crate::{
AppState, fighter::{
AppState,
fighter::{
attack::{
AttackKind, FighterAttackPlugin, FighterAttackScriptAssets, FighterDamage,
FighterKnockbackVelocity, FighterPendingHitReaction, FighterReceivedAttacks,
@@ -43,7 +44,13 @@ use crate::{
manifest::FighterManifest,
state::{FighterState, fall::FallState},
visual::FighterAnimations,
}, input::FighterInput, math::{int::FGi32, vec::FGVec2}, player::Player, schedule::GameplaySet, scripting::FighterAttackScript, stage::line::StageCollision,
},
input::FighterInput,
math::{int::FGi32, vec::FGVec2},
player::Player,
schedule::GameplaySet,
scripting::FighterAttackScript,
stage::line::StageCollision,
};
use state::state_interrupt_system;
@@ -216,7 +223,8 @@ impl Plugin for FighterPlugin {
.after(debug::attack_debug_gather),
)
.chain()
.run_if(crate::debug_tools::attack_hitboxes_enabled).run_if(in_state(AppState::InMatch)),
.run_if(crate::debug_tools::attack_hitboxes_enabled)
.run_if(in_state(AppState::InMatch)),
)
.add_systems(
FixedPostUpdate,