public EDRaceStatus(string commander, EDRace race, bool immediateStart = true) { _raceHistory = new StringBuilder(); Commander = commander; _race = race;// Route = route; if (immediateStart) { StartRace(); } }
public RaceReplayGenerator(EDRace race, string outputFile) { _race = race; try { _writeStream = File.OpenWrite(outputFile); } catch { return; } _collectStatusTimer = new Timer(1000); _collectStatusTimer.Elapsed += _collectStatusTimer_Elapsed; }
public void SetRace(EDRace race) { _race = race; }