Class GeoCostDisplayer
A noncumulative cost displayer which displays geo costs (as in vanilla shops).
Inherited Members
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public class GeoCostDisplayer : CostDisplayer
Constructors
View SourceGeoCostDisplayer()
Declaration
public GeoCostDisplayer()
Properties
View SourceCumulative
Whether nested costs should be considered cumulative. A cost is cumulative if costs paid also count towards subsequent costs. For example, grub costs are cumulative, geo costs are not.
Declaration
public override bool Cumulative { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
View SourceCustomCostSprite
A sprite to use to display the cost visually, if contextually applicable. If no sprite is provided, existing sprites won't be replaced. Default is null.
Declaration
public override ISprite? CustomCostSprite { get; }
Property Value
| Type | Description |
|---|---|
| ISprite |
Overrides
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).