add player unit address

This commit is contained in:
Héctor Giménez
2024-05-09 20:31:14 +09:00
parent c398062b57
commit 8fceb8fc99
2 changed files with 2 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ type Position struct {
}
type PlayerUnit struct {
Address uintptr
Name string
ID UnitID
Area area.ID

View File

@@ -99,6 +99,7 @@ func (gd *GameReader) GetPlayerUnit(mainPlayerUnit RawPlayerUnit) data.PlayerUni
}
d := data.PlayerUnit{
Address: mainPlayerUnit.Address,
Name: mainPlayerUnit.Name,
ID: mainPlayerUnit.UnitID,
Area: mainPlayerUnit.Area,