Make OpenMenus and Hover data accessible outside GetData() (#92)

Simply making openMenu and hoverData exposed like everything else in game_reader.go

to be used with koolo on demand  outside of  GetData()
This will improve openMenu and hover refresh by avoiding updating everything from GetData  when we only need light information.

Benefit:
Increase responsiveness of bot, reduce cpu usage by much

i already have the work done on koolo side waiting on this to be merged.
This commit is contained in:
elb
2025-03-24 03:05:59 -04:00
committed by GitHub
parent 169a765152
commit dba9a7b5a5
2 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ import (
func (gd *GameReader) GetRawPlayerUnits() RawPlayerUnits {
rawPlayerUnits := make(RawPlayerUnits, 0)
hover := gd.hoveredData()
hover := gd.HoveredData()
for i := 0; i < 128; i++ {
unitOffset := gd.offset.UnitTable + uintptr(i*8)
playerUnitAddr := gd.Process.moduleBaseAddressPtr + unitOffset