예제 #1
0
 public GameMemory(IntelDisplay intelDisplay, Action <int> fishCountDisplay)
 {
     _intelFishPtr      = new DeepPointer(0x198452C); // 0x197C460
     _intelFishPtrDebug = new DeepPointer(0x25AF8AC); // 0x25A77E0
     _intelDisplay      = intelDisplay;
     _fishCountDisplay  = fishCountDisplay;
     IntelFishCurrent   = new byte[1];
     IntelUnitCurrent   = new byte[1];
 }
예제 #2
0
 public GameMemory(IntelDisplay intelDisplay)
 {
     _intelFishPtr      = new DeepPointer(0x198452C); // 0x197C460
     _intelFishPtrDebug = new DeepPointer(0x25AF8AC); // 0x25A77E0
     _intelDisplay      = intelDisplay;
     _netClient         = new NetClient();
     IntelFishCurrent   = new byte[1];
     IntelUnitCurrent   = new byte[1];
 }
        public NieRAutoIntelTrackerComponent(LiveSplitState state)
        {
            this.state = state;

            this._intelDisplay = new IntelDisplay();
            this.settings      = new Settings(visible => _intelDisplay.SetVisibility(visible));

            this._gameMemory = new GameMemory(_intelDisplay, fishCount => RefreshFishCount(fishCount));
            this._gameMemory.StartMonitoring();

            InternalComponent = new InfoTextComponent("Fish Intel", "Loading...");

            ContextMenuControls = new Dictionary <string, Action>
            {
                { "Toggle NieR:Automata Intel Tracker", new Action(_intelDisplay.ToggleVisibility) }
            };
        }
예제 #4
0
        public NieRAutoIntelTrackerComponent(LiveSplitState state)
        {
            this.state = state;

            this._intelDisplay = new IntelDisplay();
            this.settings      = new Settings(visible => _intelDisplay.SetVisibility(visible));

            this._gameMemory = new GameMemory(_intelDisplay);
            this._gameMemory.StartMonitoring();

            HorizontalWidth = 0;
            VerticalHeight  = 0;

            ContextMenuControls = new Dictionary <string, Action>
            {
                { "Toggle NieR:Automata Intel Tracker", new Action(_intelDisplay.ToggleVisibility) }
            };
        }