feat(headless): complete deterministic bot command parity
This commit is contained in:
parent
7e8acb74dd
commit
38e83640d9
37 changed files with 2805 additions and 295 deletions
|
|
@ -60,11 +60,14 @@ public sealed class RuntimeGenerationResetTests
|
|||
Assert.Equal(1, host.DrainCalls);
|
||||
Assert.Equal(1, host.CompleteCalls);
|
||||
Assert.All(
|
||||
observer.Entity.Concat(observer.Inventory),
|
||||
observer.Combat
|
||||
.Concat(observer.Entity)
|
||||
.Concat(observer.Inventory),
|
||||
stamp => Assert.Equal(retiring, stamp.Generation));
|
||||
Assert.Equal(
|
||||
[1UL, 2UL],
|
||||
observer.Inventory
|
||||
[1UL, 2UL, 3UL, 4UL, 5UL],
|
||||
observer.Combat
|
||||
.Concat(observer.Inventory)
|
||||
.Concat(observer.Entity)
|
||||
.OrderBy(static stamp => stamp.Sequence)
|
||||
.Select(static stamp => stamp.Sequence));
|
||||
|
|
@ -312,6 +315,7 @@ public sealed class RuntimeGenerationResetTests
|
|||
{
|
||||
public List<RuntimeEventStamp> Entity { get; } = [];
|
||||
public List<RuntimeEventStamp> Inventory { get; } = [];
|
||||
public List<RuntimeEventStamp> Combat { get; } = [];
|
||||
|
||||
public void OnLifecycle(in RuntimeLifecycleDelta delta) { }
|
||||
public void OnCommand(in RuntimeCommandDelta delta) { }
|
||||
|
|
@ -322,6 +326,8 @@ public sealed class RuntimeGenerationResetTests
|
|||
public void OnChat(in RuntimeChatDelta delta) { }
|
||||
public void OnMovement(in RuntimeMovementDelta delta) { }
|
||||
public void OnPortal(in RuntimePortalDelta delta) { }
|
||||
public void OnCombat(in RuntimeCombatDelta delta) =>
|
||||
Combat.Add(delta.Stamp);
|
||||
}
|
||||
|
||||
private sealed class Operations :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue