Show / Hide Table of Contents

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.

Inheritance
object
CostDisplayer
PDIntCostDisplayer
Inherited Members
CostDisplayer.GetDisplayAmount(Cost)
CostDisplayer.GetAdditionalCostText(Cost)
CostDisplayer.CustomCostSprite
CostDisplayer.Cumulative
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 PDIntCostDisplayer : CostDisplayer

Constructors

View Source

PDIntCostDisplayer()

Declaration
public PDIntCostDisplayer()

Properties

View Source

FieldName

Declaration
public string FieldName { get; set; }
Property Value
Type Description
string

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