fire-eggs / CivOne

An open source implementation of Sid Meier's Civilization 1 using C# and .NET.
Creative Commons Zero v1.0 Universal
20 stars 4 forks source link

Feature: Implement trade route counter for cities #173

Open iegik opened 2 years ago

iegik commented 2 years ago

Caravan.EstablishTradeRoute - should add routes into some collection and each city should know how many connections it has with other cities.

I assume, that need to create TradeRoutes collection, EstablishingTradeRoute event and City.HasTradeRoutes and/or City.TradeRoutes[] = [...]

https://github.com/fire-eggs/CivOne/blob/18d4350c4d0b608b97b9e0e383d62bd77a21ed0e/src/Units/Caravan.cs#L50-L51

Related with #169