chore: remove unused Combat and SideScrolling template variants
Drop the Combat and SideScrolling C++ code, content and external actors/objects; nothing outside those folders referenced them. Remove the AI/StateTree module and plugin dependencies, collapse the per-variant include paths, and trim the AZERTY script and regression tests accordingly. Variant_Platforming is kept as reference for the upcoming pogo mechanics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cedb239906
commit
1caff76d4b
416 files changed
+4
-6521
No files matched your search
@@ -9,8 +9,6 @@ import unreal
|
||||
CONTEXTS = [
|
||||
"/Game/Input/IMC_Default",
|
||||
"/Game/Variant_Platforming/Input/IMC_Platforming",
|
||||
"/Game/Variant_Combat/Input/IMC_Combat",
|
||||
"/Game/Variant_SideScrolling/Input/IMC_SideScroller",
|
||||
]
|
||||
EXTRA_KEYS = {"W": "Z", "A": "Q"}
|
||||
|
||||
|
||||
@@ -30,14 +30,6 @@ def function_body(relative_path: str, signature: str) -> str:
|
||||
|
||||
|
||||
class GameplayBlockerTests(unittest.TestCase):
|
||||
def test_set_character_speed_finishes_synchronously(self):
|
||||
body = function_body(
|
||||
"Source/pogo/Variant_Combat/AI/CombatStateTreeUtility.cpp",
|
||||
"FStateTreeSetCharacterSpeedTask::EnterState",
|
||||
)
|
||||
self.assertIn("return EStateTreeRunStatus::Succeeded;", body)
|
||||
self.assertNotIn("return EStateTreeRunStatus::Running;", body)
|
||||
|
||||
def test_dash_commits_state_only_after_montage_starts(self):
|
||||
body = function_body(
|
||||
"Source/pogo/Variant_Platforming/PlatformingCharacter.cpp",
|
||||
@@ -51,46 +43,6 @@ class GameplayBlockerTests(unittest.TestCase):
|
||||
self.assertLess(play, success_guard)
|
||||
self.assertLess(success_guard, state_commit)
|
||||
|
||||
def test_attacks_commit_state_only_after_montage_starts(self):
|
||||
cases = [
|
||||
("Source/pogo/Variant_Combat/CombatCharacter.cpp", "void ACombatCharacter::ComboAttack()", False),
|
||||
("Source/pogo/Variant_Combat/CombatCharacter.cpp", "void ACombatCharacter::ChargedAttack()", False),
|
||||
("Source/pogo/Variant_Combat/AI/CombatEnemy.cpp", "void ACombatEnemy::DoAIComboAttack()", True),
|
||||
("Source/pogo/Variant_Combat/AI/CombatEnemy.cpp", "void ACombatEnemy::DoAIChargedAttack()", True),
|
||||
]
|
||||
for path, signature, must_finish_state_tree in cases:
|
||||
with self.subTest(signature=signature):
|
||||
body = function_body(path, signature)
|
||||
self.assertIn("MontageLength <= 0.0f", body)
|
||||
play = body.index("Montage_Play")
|
||||
success_guard = body.index("MontageLength <= 0.0f")
|
||||
state_commit = body.index("bIsAttacking = true;")
|
||||
self.assertLess(play, success_guard)
|
||||
self.assertLess(success_guard, state_commit)
|
||||
if must_finish_state_tree:
|
||||
self.assertGreaterEqual(body.count("OnAttackCompleted.ExecuteIfBound();"), 2)
|
||||
|
||||
def test_side_scrolling_landed_calls_base_first(self):
|
||||
body = function_body(
|
||||
"Source/pogo/Variant_SideScrolling/SideScrollingCharacter.cpp",
|
||||
"void ASideScrollingCharacter::Landed(const FHitResult& Hit)",
|
||||
)
|
||||
self.assertIn("Super::Landed(Hit);", body)
|
||||
self.assertLess(body.index("Super::Landed(Hit);"), body.index("bHasDoubleJumped = false;"))
|
||||
|
||||
def test_attack_traces_deduplicate_actors(self):
|
||||
cases = [
|
||||
("Source/pogo/Variant_Combat/CombatCharacter.cpp", "ACombatCharacter::DoAttackTrace"),
|
||||
("Source/pogo/Variant_Combat/AI/CombatEnemy.cpp", "ACombatEnemy::DoAttackTrace"),
|
||||
]
|
||||
for path, signature in cases:
|
||||
with self.subTest(signature=signature):
|
||||
body = function_body(path, signature)
|
||||
self.assertIn("TSet<AActor*> DamagedActors;", body)
|
||||
self.assertIn("DamagedActors.Contains(HitActor)", body)
|
||||
self.assertIn("DamagedActors.Add(HitActor);", body)
|
||||
self.assertLess(body.index("DamagedActors.Add(HitActor);"), body.index("Damageable->ApplyDamage"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user