feat(mosstank): add VTank-style automation PoC

This commit is contained in:
Erik 2026-08-27 18:57:21 +02:00
parent f6fe0f2a4f
commit 4e6e9bc9d9
212 changed files with 49462 additions and 416 deletions

View file

@ -34,6 +34,21 @@ public sealed class DispatcherMovementInputSourceTests
Assert.False(captured.Run);
}
[Fact]
public void CommandInputIsMarkedPersistentWithoutChangingStoredSnapshot()
{
using var movement = new RuntimeLocalPlayerMovementState();
var command = new MovementInput(TurnRight: true);
movement.SetCommandInput(command);
var source = new DispatcherMovementInputSource(movement);
MovementInput captured = source.Capture();
Assert.True(captured.TurnRight);
Assert.True(captured.IsPersistentCommand);
Assert.Equal(command, movement.CommandInput);
}
[Fact]
public void RetainedKeyboardCaptureSilencesHeldKeysButDoesNotCancelAutorun()
{