Class DealerRecommendationBuilder
Builder for configuring how a dealer should be recommended to the player.
public sealed class DealerRecommendationBuilder
- Inheritance
-
DealerRecommendationBuilder
- Inherited Members
- Extension Methods
Methods
FromCustomer(NPC)
Uses the provided customer wrapper as the source of the recommendation.
public DealerRecommendationBuilder FromCustomer(NPC customer)
Parameters
customerNPCThe customer who should recommend the dealer.
Returns
FromCustomer(string)
Uses the provided customer NPC ID as the source of the recommendation.
public DealerRecommendationBuilder FromCustomer(string customerId)
Parameters
customerIdstringThe recommending customer's NPC ID.
Returns
FromCustomer<TCustomer>()
Uses the specified customer NPC type as the source of the recommendation. This overload works during prefab configuration when a wrapper instance is not available yet.
public DealerRecommendationBuilder FromCustomer<TCustomer>() where TCustomer : NPC
Returns
Type Parameters
TCustomerThe recommending customer NPC type.
OnDealCompleted()
Triggers the recommendation when the configured customer completes a deal.
public DealerRecommendationBuilder OnDealCompleted()