Show / Hide Table of Contents

Class FlameCost

A Grimmkin Flame cost with options to act cumulatively.

Inheritance
object
Cost
FlameCost
Implements
IEquatable<Cost>
IEquatable<FlameCost>
Inherited Members
Cost.Pay()
Cost.AfterPay()
Cost.GetBaseCost()
Cost.Includes(Cost)
Cost.Load()
Cost.Unload()
Cost.NewGeoCost(int)
Cost.NewEssenceCost(int)
Cost.NewGrubCost(int)
Cost.Paid
Cost.Recurring
Cost.DiscountRate
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: ItemChanger.Modules
Assembly: ItemChanger.dll
Syntax
public record FlameCost : Cost, IEquatable<Cost>, IEquatable<FlameCost>

Constructors

View Source

FlameCost(FlameCost)

Declaration
protected FlameCost(FlameCost original)
Parameters
Type Name Description
FlameCost original
View Source

FlameCost(int, bool, bool)

A Grimmkin Flame cost with options to act cumulatively.

Declaration
public FlameCost(int amount, bool cumulative, bool subtractive)
Parameters
Type Name Description
int amount

The number of flames.

bool cumulative

Should the cost compare against the cumulative flames collected, or the current balance?

bool subtractive

Should paying the cost increment the cumulative flames spent, and decrease the current balance?

Properties

View Source

EqualityContract

Declaration
protected override Type EqualityContract { get; }
Property Value
Type Description
Type
Overrides
Cost.EqualityContract
View Source

amount

The number of flames.

Declaration
public int amount { get; init; }
Property Value
Type Description
int
View Source

cumulative

Should the cost compare against the cumulative flames collected, or the current balance?

Declaration
public bool cumulative { get; init; }
Property Value
Type Description
bool
View Source

subtractive

Should paying the cost increment the cumulative flames spent, and decrease the current balance?

Declaration
public bool subtractive { get; init; }
Property Value
Type Description
bool

Methods

View Source

CanPay()

Returns whether the cost can currently be paid.

Declaration
public override bool CanPay()
Returns
Type Description
bool
Overrides
Cost.CanPay()
View Source

Deconstruct(out int, out bool, out bool)

Declaration
public void Deconstruct(out int amount, out bool cumulative, out bool subtractive)
Parameters
Type Name Description
int amount
bool cumulative
bool subtractive
View Source

Equals(Cost?)

Declaration
public override sealed bool Equals(Cost? other)
Parameters
Type Name Description
Cost other
Returns
Type Description
bool
Overrides
Cost.Equals(Cost?)
View Source

Equals(FlameCost?)

Declaration
public virtual bool Equals(FlameCost? other)
Parameters
Type Name Description
FlameCost other
Returns
Type Description
bool
View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
Cost.Equals(object?)
View Source

GetCostText()

Method which provides the cost text used in y/n prompts.

Declaration
public override string GetCostText()
Returns
Type Description
string
Overrides
Cost.GetCostText()
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
Cost.GetHashCode()
View Source

HasPayEffects()

Does paying this cost have effects (particularly that could prevent paying other costs of the same type)?

Declaration
public override bool HasPayEffects()
Returns
Type Description
bool
Overrides
Cost.HasPayEffects()
View Source

OnPay()

Method for administering all effects of the cost during Pay.

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

PrintMembers(StringBuilder)

Declaration
protected override bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
Overrides
Cost.PrintMembers(StringBuilder)
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
Cost.ToString()

Operators

View Source

operator ==(FlameCost?, FlameCost?)

Declaration
public static bool operator ==(FlameCost? left, FlameCost? right)
Parameters
Type Name Description
FlameCost left
FlameCost right
Returns
Type Description
bool
View Source

operator !=(FlameCost?, FlameCost?)

Declaration
public static bool operator !=(FlameCost? left, FlameCost? right)
Parameters
Type Name Description
FlameCost left
FlameCost right
Returns
Type Description
bool

Implements

IEquatable<T>
IEquatable<T>

Extension Methods

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