Class MultiCost
Cost which is the concatenation of other costs. Can only be paid if all of its costs can be paid, and pays all its costs sequentially.
Inheritance
System.Object
MultiCost
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()
Assembly: ItemChanger.dll
Syntax
public sealed class MultiCost : Cost, IEquatable<Cost>, IEquatable<MultiCost>
Constructors
|
Improve this Doc
View Source
MultiCost()
Declaration
|
Improve this Doc
View Source
MultiCost(Cost[])
Declaration
public MultiCost(params Cost[] Costs)
Parameters
| Type |
Name |
Description |
| Cost[] |
Costs |
|
|
Improve this Doc
View Source
MultiCost(IEnumerable<Cost>)
Declaration
public MultiCost(IEnumerable<Cost> Costs)
Parameters
| Type |
Name |
Description |
| System.Collections.IEnumerable<Cost> |
Costs |
|
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
DiscountRate
Declaration
public override float DiscountRate { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Overrides
|
Improve this Doc
View Source
Item[Int32]
Declaration
public Cost this[int index] { get; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Property Value
Methods
|
Improve this Doc
View Source
CanPay()
Declaration
public override bool CanPay()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Contains(Cost)
Declaration
public bool Contains(Cost item)
Parameters
| Type |
Name |
Description |
| Cost |
item |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
CopyTo(Cost[], Int32)
Declaration
public void CopyTo(Cost[] array, int arrayIndex)
Parameters
| Type |
Name |
Description |
| Cost[] |
array |
|
| System.Int32 |
arrayIndex |
|
|
Improve this Doc
View Source
GetCostText()
Declaration
public override string GetCostText()
Returns
| Type |
Description |
| System.String |
|
Overrides
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<Cost> GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator<Cost> |
|
|
Improve this Doc
View Source
HasPayEffects()
Declaration
public override bool HasPayEffects()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
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
|
Improve this Doc
View Source
IndexOf(Cost)
Declaration
public int IndexOf(Cost item)
Parameters
| Type |
Name |
Description |
| Cost |
item |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Load()
Declaration
public override void Load()
Overrides
|
Improve this Doc
View Source
OnPay()
Declaration
public override void OnPay()
Overrides
|
Improve this Doc
View Source
Unload()
Declaration
public override void Unload()
Overrides
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
Implements
System.IEquatable<T>
IReadOnlyList<>
System.IEquatable<T>
Extension Methods