kotcity4 / kotcity.automata / ResourceFinder / nearestBuyingTradeable

nearestBuyingTradeable

fun nearestBuyingTradeable(tradeable: Tradeable, sourceBlocks: List<BlockCoordinate>, maxDistance: Int = MAX_RESOURCE_DISTANCE): Pair<TradeEntity, Path>?