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