Exemplo n.º 1
0
        public void Initialize(FezSettings settings)
        {
            CurrentLevel = 0;
            NextLevel    = 0;
            isLoading    = false;
            inDoor       = false;

            //set splits
            splits = new InfoList();
            splits.AddRange(DefaultInfo.BaseSplits);

            foreach (var _setting in settings.CheckedSplits)
            {
                if (!_setting.isEnabled)
                {
                    splits.Remove(splits[_setting.Name]);
                }
            }
        }
Exemplo n.º 2
0
        public FezComponent(LiveSplitState state)
        {
            settings = new FezSettings();

            timer = new TimerModel()
            {
                CurrentState = state
            };
            timer.CurrentState.OnStart += timer_OnStart;

            processTimer = new Timer()
            {
                Interval = 2000, Enabled = true
            };
            processTimer.Tick += processTimer_OnTick;

            memory            = new FezMemory();
            memory.LoadStart += memory_OnLoadStart;
            memory.LoadEnd   += memory_OnLoadEnd;
        }