Show / Hide Table of Contents

Class GeoCostDisplayer

A noncumulative cost displayer which displays geo costs (as in vanilla shops).

Inheritance
object
CostDisplayer
GeoCostDisplayer
Inherited Members
CostDisplayer.GetDisplayAmount(Cost)
CostDisplayer.GetAdditionalCostText(Cost)
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public class GeoCostDisplayer : CostDisplayer

Constructors

View Source

GeoCostDisplayer()

Declaration
public GeoCostDisplayer()

Properties

View Source

Cumulative

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
CostDisplayer.Cumulative
View Source

CustomCostSprite

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
CostDisplayer.CustomCostSprite

Methods

View Source

GetSingleCostDisplayAmount(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
CostDisplayer.GetSingleCostDisplayAmount(Cost)
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).

View Source

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
CostDisplayer.SupportsCost(Cost)
Remarks

Implementers may assume that any wrapper costs have been removed (i.e. directly type checking a given cost without calling GetBaseCost is acceptable).

Extension Methods

Extensions.Yield<T>(T)
  • View Source
In this article
Back to top Generated by DocFX