LastSword
Prince
- Joined
- Feb 24, 2013
- Messages
- 1,129
Shortly: I have a Trade Unit (caravan) and I would like to know CityTo from TradeRoute data (Trade Route destination).
//I am 100% sure that my Trade Unit is currently making a Trade Route.
//The best I have thought is detect the UnitID, look how many units with lower ID is creating TradeRoute and then pick equivalent Trade Route. Quite silly, but would work if Trade Routes are sorted that way.
//I am 100% sure that my Trade Unit is currently making a Trade Route.
//The best I have thought is detect the UnitID, look how many units with lower ID is creating TradeRoute and then pick equivalent Trade Route. Quite silly, but would work if Trade Routes are sorted that way.