Example #1
0
        // This is used to convert the player data taken from the .act file into a traffic service definition for autopilot mode
        public ServiceTraffics(string serviceName, PlayerTraffics playerTraffic)
        {
            Name = serviceName;
            Time = playerTraffic?.Time ?? throw new ArgumentNullException(nameof(playerTraffic));

            AddRange(playerTraffic);
        }
Example #2
0
        // This is used to convert the player data taken from the .act file into a traffic service definition for autopilot mode
        public ServiceTraffics(string serviceName, PlayerTraffics playerTraffic)
        {
            Name = serviceName;
            Time = playerTraffic.Time;

            AddRange(playerTraffic);
        }
Example #3
0
 internal PlayerServices(STFReader stf)
 {
     stf.MustMatchBlockStart();
     Name = stf.ReadString();
     stf.ParseBlock(new STFReader.TokenProcessor[] {
         new STFReader.TokenProcessor("player_traffic_definition", () => { PlayerTraffics = new PlayerTraffics(stf); }),
     });
 }
Example #4
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)));
        }
Example #5
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)));
        }
Example #6
0
 // Used for explore in activity mode
 public PlayerServices(int startTime, string name)
 {
     Name           = name;
     PlayerTraffics = new PlayerTraffics(startTime);
 }