Class DealerDataBuilder
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
allowbool
Returns
AllowInsufficientQuality(bool)
Allows the dealer to sell items below the customer's quality standards.
public DealerDataBuilder AllowInsufficientQuality(bool allow)
Parameters
allowbool
Returns
WithCompletedDealsVariable(string)
Sets the variable name to track completed deals for this dealer.
public DealerDataBuilder WithCompletedDealsVariable(string varName)
Parameters
varNamestring
Returns
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
percentagefloat
Returns
WithDealerType(DealerType)
Sets the dealer type (PlayerDealer or CartelDealer).
public DealerDataBuilder WithDealerType(DealerType type)
Parameters
typeDealerType
Returns
WithHome(Building)
Sets the home building for this dealer using a Building wrapper.
public DealerDataBuilder WithHome(Building building)
Parameters
buildingBuildingThe Building wrapper for the dealer's home.
Returns
WithHomeName(string)
Sets the home building name for this dealer.
public DealerDataBuilder WithHomeName(string name)
Parameters
namestring
Returns
WithRecommendation(Action<DealerRecommendationBuilder>)
Adds a dealer recommendation rule.
public DealerDataBuilder WithRecommendation(Action<DealerRecommendationBuilder> configure)
Parameters
configureAction<DealerRecommendationBuilder>Configures the recommendation source and trigger.
Returns
WithSigningFee(float)
Sets the signing fee required to recruit this dealer.
public DealerDataBuilder WithSigningFee(float fee)
Parameters
feefloat