public void HiSpeedPursuitMsgHandler(HiSpeedPursuitMsg m) { if (Name != "Car209") { return; } Clock.Timer.Stop(); TraceLog(m.MessageType, m.Sender, HandlerType, $"{Name}/{GetHashCode()}"); Clock.Timer.Restart(); m.Callback("Pursuit ended, suspect in custody."); }
public void SendCallbackableMsgToOnePatrolCar(HiSpeedPursuitMsg m) { Clock.Timer.Restart(); m.Callback = CallbackFromCar209AboutHiSpeedPursuit; Broker.PoliceDispatcher.Send(m); }