public static void SetSpeedlimit(StreetSegment segment, double speedlimit)
 {
     if (segment.SpeedLimit != speedlimit)
     {
         RoadInstruction ri = new RoadInstruction(segment.ID, speedlimit, true);
         SendRoadInstruction(ri);
     }
 }
        public static void BlockRoads(List <StreetConnector> connectors)
        {
            List <StreetSegment> segments = GetConnectingStreetSegments(connectors);

            foreach (StreetSegment s in segments)
            {
                if (s.IsUsable)
                {
                    RoadInstruction ri = new RoadInstruction(s.ID, s.SpeedLimit, false);
                    SendRoadInstruction(ri);
                }
            }
        }
 public static void SendRoadInstruction(RoadInstruction r)
 {
     Master.DataLinker.SS3.SendRoadInstruction(r);
 }