/// <summary> /// Creates the core instances of SS1. /// </summary> public static void Init() { control = TrafficControl.GetInstance; lightManager = TrafficLightManager.GetInstance; detector = TrafficDetection.GetInstance; }
/// <summary> /// Calls method, which need to be carried out each tick. /// </summary> public static void SimulateTick() { TrafficLightManager.UpdateTrafficLights(); }
/// <summary> /// This method gets called by the DataLinker and receives a list of new TrafficLightPlans. /// It then forwards the plans to the TrafficLightManager. /// </summary> /// <param name="plans"></param> public static void ReceiveTrafficLightPlans(List <TrafficLightPlan> plans) { TrafficLightManager.AddTrafficLightPlans(plans); }