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]); } } }
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; }