feat(mosstank): add VTank-style automation PoC
This commit is contained in:
parent
f6fe0f2a4f
commit
4e6e9bc9d9
212 changed files with 49462 additions and 416 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue