Class ConstantStateProvider
- Namespace
- RandomizerCore.Logic.StateLogic
- Assembly
- RandomizerCore.dll
A StateProvider which provides a fixed state union.
public sealed class ConstantStateProvider : StateProvider, ILogicInt, IStateProvider, ILogicVariable
- Inheritance
-
ConstantStateProvider
- Implements
- Inherited Members
Constructors
ConstantStateProvider(string, StateUnion?)
public ConstantStateProvider(string name, StateUnion? value)
Parameters
name
stringvalue
StateUnion
Properties
Name
The name of the variable. Should match its usage in logic.
public override string Name { get; }
Property Value
Value
public StateUnion? Value { get; }
Property Value
Methods
GetInputState(object?, ProgressionManager)
Gets the collection of states which should be fed into the conjunction containing this variable.
public override StateUnion? GetInputState(object? sender, ProgressionManager pm)
Parameters
sender
objectpm
ProgressionManager
Returns
GetTerms()
The terms which could possibly alter the evaluation of the variable.
public override IEnumerable<Term> GetTerms()