Function international_routes
Source pub fn international_routes(
layout: &StartposLayout,
trade_manager: &RecordNode,
) -> Result<Vec<(u32, u32)>>
Expand description
Reads the international trade routes of a written CAMPAIGN_TRADE_MANAGER.
§Arguments
layout - Record layouts.
trade_manager - The written trade manager.
§Returns
Each route’s owner faction (runtime id) and route id, in manager order.
§Errors
Returns an error if the record doesn’t fit its layout.