Beispiel #1
0
        // This is used to convert the player traffic definition into an AI train service definition for autopilot mode
        public Services(string serviceName, PlayerTraffics playerTraffic)
        {
            Name = serviceName;
            Time = playerTraffic?.Time ?? throw new ArgumentNullException(nameof(playerTraffic));
            UiD  = 0;

            AddRange(playerTraffic.ConvertAll(x => new TrafficItem(0.95f, x.SkipCount, x.DistanceDownPath, x.PlatformStartID)));
        }
Beispiel #2
0
        // This is used to convert the player traffic definition into an AI train service definition for autopilot mode
        public Services(string serviceName, PlayerTraffics playerTraffic)
        {
            Name = serviceName;
            Time = playerTraffic.Time;
            UiD  = 0;

            AddRange(playerTraffic.ConvertAll(x => new TrafficItem(0.95f, x.SkipCount, x.DistanceDownPath, x.PlatformStartID)));
        }