Class SingleCostDisplayerSelectionStrategy
A cost displayer selection strategy which applies a single cost displayer to all items.
Implements
Inherited Members
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public class SingleCostDisplayerSelectionStrategy : ICostDisplayerSelectionStrategy
Constructors
View SourceSingleCostDisplayerSelectionStrategy()
Declaration
public SingleCostDisplayerSelectionStrategy()
Properties
View SourceCostDisplayer
The cost displayer to use.
Declaration
public required CostDisplayer CostDisplayer { get; set; }
Property Value
| Type | Description |
|---|---|
| CostDisplayer |
Methods
View SourceGetCostDisplayer(AbstractItem)
Gets a cost displayer for a given item based on the chosen strategy.
Declaration
public CostDisplayer GetCostDisplayer(AbstractItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| AbstractItem | item | The item to use to choose the correct type of cost displayer |
Returns
| Type | Description |
|---|---|
| CostDisplayer |