Class ConstantInt
- Namespace
- RandomizerCore.Logic
- Assembly
- RandomizerCore.dll
A LogicInt which produces a constant value.
public sealed class ConstantInt : LogicInt, ILogicInt, ILogicVariable
- Inheritance
-
ConstantInt
- Implements
- Inherited Members
Constructors
ConstantInt(int)
public ConstantInt(int value)
Parameters
value
int
Fields
value
public readonly int value
Field Value
Properties
Name
The name of the variable. Should match its usage in logic.
public override string Name { get; }
Property Value
Methods
GetTerms()
The terms which could possibly alter the evaluation of the variable.
public override IEnumerable<Term> GetTerms()
Returns
GetValue(object?, ProgressionManager)
public override int GetValue(object? sender, ProgressionManager pm)
Parameters
sender
objectpm
ProgressionManager