Home › Lua API › GameNationalParks

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

GameNationalParks

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
EnumerateNationalParks GameNationalParks:EnumerateNationalParks() → string ui-cache — 0x69ee10 0x69f3e0
GetAtIndex GameNationalParks:GetAtIndex(uiIndex?: number) → Park (or nothing) ui-cache — 0x69f270 0x69f840
GetAtLocation GameNationalParks:GetAtLocation() → Park (or nothing) ui-cache — 0x69f2f0 0x69f8c0
GetCount GameNationalParks:GetCount() → number ui-cache — 0x69f390 0x69f960
GetNationalParkName GameNationalParks:GetNationalParkName() → string ui-cache — 0x69f3e0 0x69f9b0
GetPossibleParkTiles GameNationalParks:GetPossibleParkTiles(ePlayer?: number) → number[]
args: ePlayer — Id of a player (the scripts name the argument playerID / owner). (inferred)
ui-cache — 0x69f4e0 0x69fab0
IsNationalPark GameNationalParks:IsNationalPark() → boolean ui-cache — 0x69f810 0x69fde0