Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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); }),
     });
 }
Exemplo n.º 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)));
        }
Exemplo n.º 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)));
        }
Exemplo n.º 6
0
 // Used for explore in activity mode
 public PlayerServices(int startTime, string name)
 {
     Name           = name;
     PlayerTraffics = new PlayerTraffics(startTime);
 }