Table of Contents

Class DealerDataBuilder

Namespace
S1API.Entities.Dealer
Assembly
S1API.dll

Builder for composing dealer configuration at runtime without asset bundles. Public surface uses API wrappers and primitive identifiers only.

public sealed class DealerDataBuilder
Inheritance
DealerDataBuilder
Inherited Members
Extension Methods

Methods

AllowExcessQuality(bool)

Allows the dealer to sell items above the customer's quality standards.

public DealerDataBuilder AllowExcessQuality(bool allow)

Parameters

allow bool

Returns

DealerDataBuilder

AllowInsufficientQuality(bool)

Allows the dealer to sell items below the customer's quality standards.

public DealerDataBuilder AllowInsufficientQuality(bool allow)

Parameters

allow bool

Returns

DealerDataBuilder

WithCompletedDealsVariable(string)

Sets the variable name to track completed deals for this dealer.

public DealerDataBuilder WithCompletedDealsVariable(string varName)

Parameters

varName string

Returns

DealerDataBuilder

WithCut(float)

Sets the dealer's commission cut (percentage of earnings they keep). Range: 0.0 to 1.0.

public DealerDataBuilder WithCut(float percentage)

Parameters

percentage float

Returns

DealerDataBuilder

WithDealerType(DealerType)

Sets the dealer type (PlayerDealer or CartelDealer).

public DealerDataBuilder WithDealerType(DealerType type)

Parameters

type DealerType

Returns

DealerDataBuilder

WithHome(Building)

Sets the home building for this dealer using a Building wrapper.

public DealerDataBuilder WithHome(Building building)

Parameters

building Building

The Building wrapper for the dealer's home.

Returns

DealerDataBuilder

WithHomeName(string)

Sets the home building name for this dealer.

public DealerDataBuilder WithHomeName(string name)

Parameters

name string

Returns

DealerDataBuilder

WithRecommendation(Action<DealerRecommendationBuilder>)

Adds a dealer recommendation rule.

public DealerDataBuilder WithRecommendation(Action<DealerRecommendationBuilder> configure)

Parameters

configure Action<DealerRecommendationBuilder>

Configures the recommendation source and trigger.

Returns

DealerDataBuilder

WithSigningFee(float)

Sets the signing fee required to recruit this dealer.

public DealerDataBuilder WithSigningFee(float fee)

Parameters

fee float

Returns

DealerDataBuilder