Table of Contents

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 string
value StateUnion

Properties

Name

The name of the variable. Should match its usage in logic.

public override string Name { get; }

Property Value

string

Value

public StateUnion? Value { get; }

Property Value

StateUnion

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 object
pm ProgressionManager

Returns

StateUnion

GetTerms()

The terms which could possibly alter the evaluation of the variable.

public override IEnumerable<Term> GetTerms()

Returns

IEnumerable<Term>