Пример #1
0
 public object Clone()
 {
     return(new Run(this, Factory)
     {
         GameIcon = GameIcon,
         GameName = GameName,
         CategoryName = CategoryName,
         Offset = Offset,
         AttemptCount = AttemptCount,
         AttemptHistory = new List <Attempt>(AttemptHistory),
         HasChanged = HasChanged,
         FilePath = FilePath,
         CustomComparisons = new List <string>(CustomComparisons),
         ComparisonGenerators = new List <IComparisonGenerator>(ComparisonGenerators),
         AutoSplitter = AutoSplitter != null ? (AutoSplitter)AutoSplitter.Clone() : null,
         AutoSplitterSettings = AutoSplitterSettings
     });
 }
Пример #2
0
        public Run Clone()
        {
            var newRun = new Run(this, Factory, Metadata)
            {
                GameIcon             = GameIcon,
                GameName             = GameName,
                CategoryName         = CategoryName,
                Offset               = Offset,
                AttemptCount         = AttemptCount,
                AttemptHistory       = new List <Attempt>(AttemptHistory),
                HasChanged           = HasChanged,
                FilePath             = FilePath,
                CustomComparisons    = new List <string>(CustomComparisons),
                ComparisonGenerators = new List <IComparisonGenerator>(ComparisonGenerators),
                AutoSplitter         = AutoSplitter != null?AutoSplitter.Clone() : null,
                                           AutoSplitterSettings = AutoSplitterSettings,
                                           LayoutPath           = LayoutPath
            };

            return(newRun);
        }