public Component(LiveSplitState state, bool isLayoutComponent) { IsLayoutComponent = isLayoutComponent; Settings = new SpelunkySettings(); StatusWindow = new StatusWindow(); JournalTracker = new JournalTracker(); CharactersTracker = new CharactersTracker(); HandleAutoSplitterChange(Settings, EventArgs.Empty); // Simulate a property change (for default values) Settings.PropertyChanged += HandleAutoSplitterChange; }
public AutoSplitter(SpelunkyHooks hooks, Type categoryType, EnabledPatchContainer patches, TimerModel timer, string autoSaveLoadOpt, JournalTracker maybeJournalTracker, CharactersTracker maybeCharactersTracker) { Hooks = hooks; CategoryType = categoryType; Patches = patches; Segments = Category.NewSegmentInstances(categoryType); Timer = timer; AutoSaveLoadOpt = autoSaveLoadOpt; SaveLoaded = false; MaybeJournalTracker = maybeJournalTracker; MaybeCharactersTracker = maybeCharactersTracker; AssertHooksActive(); }