Esempio n. 1
0
        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]);
                }
            }
        }
Esempio n. 2
0
        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();
        }