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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user