Class PDIntCostDisplayer
A cost displayer which displays PD int costs matching a provided PD variable name. When set set to cumulative, it will check for PDIntCost; when set to noncumulative it will check for ConsumablePDIntCost. Cost sprite is user-customizable and defaults to null.
Inherited Members
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public class PDIntCostDisplayer : CostDisplayer
Constructors
View SourcePDIntCostDisplayer()
Declaration
public PDIntCostDisplayer()
Properties
View SourceFieldName
Declaration
public string FieldName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceGetSingleCostDisplayAmount(Cost)
Gets the display amount for a single cost in the displayer.
Declaration
protected override int GetSingleCostDisplayAmount(Cost cost)
Parameters
| Type | Name | Description |
|---|---|---|
| Cost | cost |
Returns
| Type | Description |
|---|---|
| int |
Overrides
Remarks
Implementers may assume that the cost has already been checked and confirmed to be supported (i.e. direct type casting without checking first is acceptable).
SupportsCost(Cost)
Whether this displayer can support a given cost.
Declaration
protected override bool SupportsCost(Cost cost)
Parameters
| Type | Name | Description |
|---|---|---|
| Cost | cost | The cost to evaluate support for |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
Implementers may assume that any wrapper costs have been removed (i.e. directly type checking a given cost without calling GetBaseCost is acceptable).