Class PDIntCost
Cost which has no pay effects, but can only be paid when the specified PlayerData int comparison succeeds.
Inherited Members
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 PDIntCost : Cost, IEquatable<Cost>, IEquatable<PDIntCost>
Constructors
| Improve this Doc View SourcePDIntCost(Int32, String, String, ComparisonOperator)
Cost which has no pay effects, but can only be paid when the specified PlayerData int comparison succeeds.
Declaration
public PDIntCost(int amount, string fieldName, string uiText, ComparisonOperator op = ComparisonOperator.Ge)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | amount | |
System.String | fieldName | |
System.String | uiText | |
ComparisonOperator | op |
Properties
| Improve this Doc View Sourceamount
Declaration
public int amount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
fieldName
Declaration
public string fieldName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
op
Declaration
public ComparisonOperator op { get; set; }
Property Value
Type | Description |
---|---|
ComparisonOperator |
uiText
Declaration
public string uiText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCanPay()
Declaration
public override bool CanPay()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceGetCostText()
Declaration
public override string GetCostText()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceHasPayEffects()
Declaration
public override bool HasPayEffects()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceIncludes(Cost)
Declaration
public override bool Includes(Cost c)
Parameters
Type | Name | Description |
---|---|---|
Cost | c |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceOnPay()
Declaration
public override void OnPay()
Overrides
Implements
System.IEquatable<T>
System.IEquatable<T>