Show / Hide Table of Contents

Class ConsumablePDIntCost

Cost which subtracts the specified amount from the specified PlayerData int. Can only be paid when the result of the subtraction would be nonnegative.

Inheritance
System.Object
Cost
ConsumablePDIntCost
Implements
System.IEquatable<Cost>
System.IEquatable<ConsumablePDIntCost>
Inherited Members
Cost.Pay()
Cost.AfterPay()
Cost.Paid
Cost.Recurring
Cost.DiscountRate
Cost.GetBaseCost()
Cost.Load()
Cost.Unload()
Cost.NewGeoCost(Int32)
Cost.NewEssenceCost(Int32)
Cost.NewGrubCost(Int32)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public sealed class ConsumablePDIntCost : Cost, IEquatable<Cost>, IEquatable<ConsumablePDIntCost>

Constructors

| Improve this Doc View Source

ConsumablePDIntCost(Int32, String, String)

Cost which subtracts the specified amount from the specified PlayerData int. Can only be paid when the result of the subtraction would be nonnegative.

Declaration
public ConsumablePDIntCost(int amount, string fieldName, string uiText)
Parameters
Type Name Description
System.Int32 amount
System.String fieldName
System.String uiText

Properties

| Improve this Doc View Source

amount

Declaration
public int amount { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

fieldName

Declaration
public string fieldName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

uiText

Declaration
public string uiText { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

CanPay()

Declaration
public override bool CanPay()
Returns
Type Description
System.Boolean
Overrides
Cost.CanPay()
| Improve this Doc View Source

GetCostText()

Declaration
public override string GetCostText()
Returns
Type Description
System.String
Overrides
Cost.GetCostText()
| Improve this Doc View Source

HasPayEffects()

Declaration
public override bool HasPayEffects()
Returns
Type Description
System.Boolean
Overrides
Cost.HasPayEffects()
| Improve this Doc View Source

Includes(Cost)

Declaration
public override bool Includes(Cost c)
Parameters
Type Name Description
Cost c
Returns
Type Description
System.Boolean
Overrides
Cost.Includes(Cost)
| Improve this Doc View Source

OnPay()

Declaration
public override void OnPay()
Overrides
Cost.OnPay()

Implements

System.IEquatable<T>
System.IEquatable<T>

Extension Methods

Extensions.Yield<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX