public Run(IComparisonGeneratorsFactory factory) { InternalList = new List<ISegment>(); AttemptHistory = new List<Attempt>(); Factory = factory; ComparisonGenerators = Factory.Create(this).ToList(); CustomComparisons = new List<string>() { PersonalBestComparisonName }; }
public Run(IComparisonGeneratorsFactory factory) { InternalList = new List <ISegment>(); AttemptHistory = new List <Attempt>(); Factory = factory; ComparisonGenerators = Factory.Create(this).ToList(); CustomComparisons = new List <string>() { PersonalBestComparisonName }; }
public Run(IEnumerable<ISegment> collection, IComparisonGeneratorsFactory factory) { InternalList = new List<ISegment>(); foreach (var x in collection) { InternalList.Add(x.Clone() as ISegment); } AttemptHistory = new List<Attempt>(); Factory = factory; ComparisonGenerators = Factory.Create(this).ToList(); CustomComparisons = new List<string>() { PersonalBestComparisonName }; }
private Run(IEnumerable <ISegment> collection, IComparisonGeneratorsFactory factory, RunMetadata metadata) { InternalList = CloneInternallList(collection); AttemptHistory = new List <Attempt>(); Factory = factory; ComparisonGenerators = Factory.Create(this).ToList(); CustomComparisons = new List <string>() { PersonalBestComparisonName }; Metadata = metadata.Clone(this); }
public Run(IComparisonGeneratorsFactory factory) { InternalList = new List <ISegment>(); AttemptHistory = new List <Attempt>(); Factory = factory; ComparisonGenerators = Factory.Create(this).ToList(); CustomComparisons = new List <string>() { PersonalBestComparisonName }; Metadata = new RunMetadata(this); CurrentDeathCount = 0; BestDeathCount = -1; }
public Run(IEnumerable <ISegment> collection, IComparisonGeneratorsFactory factory) { InternalList = new List <ISegment>(); foreach (var x in collection) { InternalList.Add(x.Clone() as ISegment); } AttemptHistory = new List <Attempt>(); Factory = factory; ComparisonGenerators = Factory.Create(this).ToList(); CustomComparisons = new List <string>() { PersonalBestComparisonName }; }