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
|
|
@ -2736,6 +2736,21 @@ public sealed class HeadlessSessionHostTests
|
|||
Assert.False(frameHost.CanAdvancePlayer);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CommandMovementFrameIsMarkedPersistentWithoutMutatingOwner()
|
||||
{
|
||||
using var movement = new RuntimeLocalPlayerMovementState();
|
||||
var command = new MovementInput(TurnLeft: true);
|
||||
movement.SetCommandInput(command);
|
||||
var source = new HeadlessMovementInputSource(movement);
|
||||
|
||||
MovementInput captured = source.Capture();
|
||||
|
||||
Assert.True(captured.TurnLeft);
|
||||
Assert.True(captured.IsPersistentCommand);
|
||||
Assert.Equal(command, movement.CommandInput);
|
||||
}
|
||||
|
||||
private static LiveSessionHost CreateInertLiveSessionHost()
|
||||
{
|
||||
var controller = new LiveSessionController(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue