Harden gameplay input restore after frontend

This commit is contained in:
2026-05-21 22:44:27 +00:00
parent fd1a8ce477
commit 5cd0c9c6d5
4 changed files with 60 additions and 8 deletions
@@ -33,6 +33,8 @@ EXPECTED = {
"AgrarianGamePlayerController.h": [
"ShowMvpPauseMenu",
"HandleMvpEscapeInput",
"RestoreGameplayControlState",
"AgrarianRepairGameplayInput",
],
"AgrarianGamePlayerController.cpp": [
"SetIgnoreMoveInput(true)",
@@ -46,6 +48,11 @@ EXPECTED = {
"ResetIgnoreMoveInput();",
"ResetIgnoreLookInput();",
"ApplyDefaultInputMappingContexts();",
"void AAgrarianGamePlayerController::RestoreGameplayControlState()",
"ControlledPawn->SetActorHiddenInGame(false)",
"ControlledPawn->SetActorEnableCollision(true)",
"MovementComponent->SetMovementMode(MOVE_Walking)",
"void AAgrarianGamePlayerController::AgrarianRepairGameplayInput()",
],
}
@@ -52,8 +52,9 @@ def main() -> None:
"SetIgnoreMoveInput(true)",
"SetIgnoreLookInput(true)",
"SetInputMode(FInputModeGameOnly())",
"SetIgnoreMoveInput(false)",
"SetIgnoreLookInput(false)",
"ResetIgnoreMoveInput()",
"ResetIgnoreLookInput()",
"RestoreGameplayControlState",
"saving",
):
require(token in controller + frontend, f"missing modal input or debug token: {token}")