Home › Lua API › UnitArchaeology

Available out of the box. Usable from Lua in the unmodified game.

UnitArchaeology

7 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.

Signatures are recovered from the game code. ⚠ = partly understood (arguments may be missing or approximate). ? after a name = optional argument. Types: integer/number are Lua numbers, enum-typed arguments show the C++ type in brackets. Two signatures mean the method is registered separately for the UI and the gameplay state and each wrapper was decoded on its own. "same code as" in the Symbol column means the compiler merged identical functions: those methods share one wrapper and cannot be told apart by address.

Method Signature Where Reference Symbol Current
GetActivationHighlightPlots UnitArchaeology:GetActivationHighlightPlots(range?: integer) → number[]
✓ exists at runtime (not called)
ui-cache — 0x6bddc0 0x6be340
GetAreaHighlightPlots UnitArchaeology:GetAreaHighlightPlots() → number[]
✓ called in the game: 1 value(s) as documented
ui-cache — 0x6bdf00 0x6be480
GetArtifactIndex UnitArchaeology:GetArtifactIndex() → number
✓ called in the game: 1 value(s) as documented
returns: The scripts pass the result to Game.GetArtifactByIndex. (inferred)
ui-cache — 0x6be010 0x6be590
GetGreatWorkIndex UnitArchaeology:GetGreatWorkIndex() → number
✓ called in the game: 1 value(s) as documented
ui-cache — 0x6be060 0x6be5e0
GetHomeBuilding UnitArchaeology:GetHomeBuilding() → number
✓ called in the game: 1 value(s) as documented
ui-cache — 0x6be0b0 0x6be630
GetHomeCityID UnitArchaeology:GetHomeCityID() → number
✓ called in the game: 1 value(s) as documented
ui-cache — 0x6be100 0x6be680
GetUnit UnitArchaeology:GetUnit() → Unit
✓ called in the game: 1 value(s) as documented
ui-cache — 0x6be150 0x6be6d0