public ManaTrackerComponent(LiveSplitState State){
        Settings = new ManaTrackerSettings(State);

        this.State = State;
        
        State.OnStart += OnRunStart;
        State.OnSplit += OnRunSplit;
        State.OnSkipSplit += OnRunSplit;
        State.OnUndoSplit += OnUndoRunSplit;

        GameProcess = GetGameProcess();

        CurrentSplitIndex = -1;
        
        ManaSnapshots = new List<ManaSnapshot>();
        SpecialEvents = new List<SpecialEvent>();

        IsInLoadingScreen = false;

        HeaderLabel = new SimpleLabel();
    }
예제 #2
0
        public ManaTrackerComponent(LiveSplitState State)
        {
            Settings = new ManaTrackerSettings(State);

            this.State = State;

            State.OnStart     += OnRunStart;
            State.OnSplit     += OnRunSplit;
            State.OnSkipSplit += OnRunSplit;
            State.OnUndoSplit += OnUndoRunSplit;

            GameProcess = GetGameProcess();

            CurrentSplitIndex = -1;

            ManaSnapshots = new List <ManaSnapshot>();
            SpecialEvents = new List <SpecialEvent>();

            IsInLoadingScreen = false;

            HeaderLabel = new SimpleLabel();
        }