Struct GoldValueSpec
Represents gold value configuration that can be a fixed number or a dice expression.
public readonly record struct GoldValueSpec : IEquatable<GoldValueSpec>
- Implements
- Inherited Members
Properties
DiceExpression
public string? DiceExpression { get; }
Property Value
FixedValue
public int FixedValue { get; }
Property Value
IsDiceExpression
public bool IsDiceExpression { get; }
Property Value
Methods
FromDiceExpression(string)
public static GoldValueSpec FromDiceExpression(string expression)
Parameters
expressionstring
Returns
FromValue(int)
public static GoldValueSpec FromValue(int value)
Parameters
valueint
Returns
Resolve(IEnhancedRandom?)
public int Resolve(IEnhancedRandom? rng = null)
Parameters
rngIEnhancedRandom
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.