예제 #1
0
 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;
 }
예제 #2
0
 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();
 }