public void setSplits(OoASettings settings) { splits = new InfoList(); splits.AddRange(DefaultInfo.BaseSplits); foreach (var _setting in settings.CheckedSplits) { if (!_setting.isEnabled) { splits.Remove(splits[_setting.Name]); } } }
public OoAComponent(LiveSplitState state) { settings = new OoASettings(); model = new TimerModel() { CurrentState = state }; model.CurrentState.OnStart += timer_OnStart; processTimer = new Timer() { Interval = 2000, Enabled = true }; processTimer.Tick += processTimer_OnTick; memory = new OoAMemory(); }