Table of Contents

Class DealerRecommendationBuilder

Namespace
S1API.Entities.Dealer
Assembly
S1API.dll

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

customer NPC

The customer who should recommend the dealer.

Returns

DealerRecommendationBuilder

FromCustomer(string)

Uses the provided customer NPC ID as the source of the recommendation.

public DealerRecommendationBuilder FromCustomer(string customerId)

Parameters

customerId string

The recommending customer's NPC ID.

Returns

DealerRecommendationBuilder

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

DealerRecommendationBuilder

Type Parameters

TCustomer

The recommending customer NPC type.

OnDealCompleted()

Triggers the recommendation when the configured customer completes a deal.

public DealerRecommendationBuilder OnDealCompleted()

Returns

DealerRecommendationBuilder