Align AVA2 Windows behavior and improve mobile touch interactions

This commit is contained in:
shen
2026-10-13 23:46:26 -07:00
parent 31c5b3dd9b
commit b3808d8d0c
106 changed files with 5162 additions and 637 deletions
+17
View File
@@ -171,6 +171,23 @@ void TestComboStateMachine(const char* model) {
fast.Update(0.1f);
assert(Near(fast.GetAttackingElapsedTime(), 0.15f, 1e-3f));
// SetAttackSpeed stores zero but does not retime the already bound attack.
fast.SetAttackSpeed(0);
fast.Update(0.1f);
assert(Near(fast.GetAttackingElapsedTime(), 0.30f, 1e-3f));
assert(fast.RunComboAttack(0, RaceData::NAME_COMBO_ATTACK_1));
fast.Update(0.1f);
assert(Near(fast.GetAttackingElapsedTime(), 0));
assert(!fast.IsMotionFinished());
fast.SetAttackSpeed(2);
fast.Update(0.1f);
assert(Near(fast.GetAttackingElapsedTime(), 0));
assert(fast.RunComboAttack(0, RaceData::NAME_COMBO_ATTACK_1));
fast.Update(0.1f);
assert(Near(fast.GetAttackingElapsedTime(), 0.2f, 1e-3f));
fast.SetAttackSpeed(-1);
assert(Near(fast.GetAttackSpeed(), 2));
// Without SetReportAttacks nothing is queued (remote actors).
ava2::ActorInstance remote;
assert(remote.SetRace(0) && remote.SetModel(model));