Home › Lua API › CityTrade

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

CityTrade

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

Community reference for this object: CityTrade (Sukrit Tan, external).

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
GetCity CityTrade:GetCity() → City
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x692800 0x692de0
GetIncomingRoutes CityTrade:GetIncomingRoutes() → 1 values ⚠
✓ exists at runtime (not called)
ui-cache yes ↗ 0x692840 0x692e20
GetOutgoingRoutes CityTrade:GetOutgoingRoutes() → 1 values ⚠
✓ exists at runtime (not called)
ui-cache yes ↗ 0x692950 0x692f30
HasActiveTradingPost CityTrade:HasActiveTradingPost(ePlayer: integer[PlayerTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).
✓ exists at runtime (not called)
ui-cache yes ↗ 0x692a60 0x693040
HasInactiveTradingPost CityTrade:HasInactiveTradingPost(ePlayer: integer[PlayerTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).
✓ exists at runtime (not called)
ui-cache yes ↗ 0x692ac0 0x6930a0
HasTradeRouteFrom CityTrade:HasTradeRouteFrom(arg1?: number) → boolean
args: arg1 — Id of a player (the scripts name the argument playerID / owner). (inferred)
✓ exists at runtime (not called)
ui-cache yes ↗ 0x692b20 0x693100