コード例 #1
0
        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.");
        }
コード例 #2
0
 public void SendCallbackableMsgToOnePatrolCar(HiSpeedPursuitMsg m)
 {
     Clock.Timer.Restart();
     m.Callback = CallbackFromCar209AboutHiSpeedPursuit;
     Broker.PoliceDispatcher.Send(m);
 }