Relay car door angles (HingeStates); test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -126,6 +126,8 @@ try
|
||||
Check(await bob.WaitFor(MsgType.VehicleDamage) != null, "Crash damage is relayed");
|
||||
alice.Send(MsgType.WorldVars, Wire.Build(w => { w.Write(1); w.Write(5); w.Write((byte)3); w.Write(true); }));
|
||||
Check(await bob.WaitFor(MsgType.WorldVars) != null, "Job/shop values are relayed");
|
||||
alice.Send(MsgType.HingeStates, Wire.Build(w => { w.Write(0); }));
|
||||
Check(await bob.WaitFor(MsgType.HingeStates) != null, "Car door angles are relayed");
|
||||
byte[] trafficPayload = Wire.Build(w => { w.Write(0); });
|
||||
bob.Send(MsgType.TrafficStates, trafficPayload);
|
||||
Check(await alice.WaitFor(MsgType.TrafficStates, 800) == null, "Traffic from a player who is not the world authority is ignored");
|
||||
|
||||
Reference in New Issue
Block a user