Home › Native functions › Trade

Engine internals. No scripting access today. Listed for contributors and for understanding the game; using it needs a change to the game library.

Trade

Function Signature (Linux) Symbol Current From Lua Notes
Edge::AddNewPathFromCacheResult void Trade::Edge::AddNewPathFromCacheResult(Trade::Edge* this, const Pathfinder::ResultNodeArray& kReversePath) 0x3811b0 0x3837f0 no writes
Edge::RemoveCurrentRoute void Trade::Edge::RemoveCurrentRoute(Trade::Edge* this) 0x3847b0 0x386df0 no writes
Graph::AddEdge Trade::Edge* Trade::Graph::AddEdge(Trade::Graph* this, Player::CityID fromCity, Player::CityID toCity) (+1 overload) 0x380e70 0x3834b0 no writes
Graph::AddPathToCity void Trade::Graph::AddPathToCity(Trade::Graph* this, Player::CityID fromCity, Player::CityID toCity, const PlotIndexArray& pathPlots) 0x3815b0 0x383bf0 no writes
Graph::RemoveRouteByCityPair void Trade::Graph::RemoveRouteByCityPair(Trade::Graph* this, Player::CityID fromCity, Player::CityID toCity, Trade::CityRouteInfo& removedRoute) 0x384a00 0x387040 no writes
Graph::RemoveRoutesByPlayerPair void Trade::Graph::RemoveRoutesByPlayerPair(Trade::Graph* this, PlayerTypes fromPlayer, PlayerTypes toPlayer, CityRouteInfoArray& removedRoutes) 0x385200 0x387840 no writes
Manager::CancelRoute void Trade::Manager::CancelRoute(Trade::Manager* this, Player::CityID originCity, Player::CityID destinationCity) 0x38aa10 0x38d0c0 no writes; called by EFFECT_TRADE_ROUTE_CANCEL
Manager::StartRoute void Trade::Manager::StartRoute(Trade::Manager* this, Unit::Instance& traderUnit, Player::CityID originCity, Player::CityID destinationCity, ResourceTypes resourceType) 0x38ed40 0x3913f0 no edit_call, signal, notification, event, writes
Manager::UpdateCitiesAlongPath void Trade::Manager::UpdateCitiesAlongPath(Trade::Manager* this, const PlotIndexArray& pathPlots, PlayerTypes tradePlayer, int routeChange) 0x38f860 0x391f10 no edit_call, writes