Table of Contents

Class StateFieldAccessor

Namespace
RandomizerCore.Logic.StateLogic
Assembly
RandomizerCore.dll
public class StateFieldAccessor : StateAccessVariable, ILogicVariable
Inheritance
StateFieldAccessor
Implements
Inherited Members

Constructors

StateFieldAccessor(StateField)

public StateFieldAccessor(StateField field)

Parameters

field StateField

Properties

Field

public StateField Field { get; }

Property Value

StateField

Name

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

public override string Name { get; }

Property Value

string

Methods

GetStateFields()

Enumerates the state fields which the variable depends on.

public override IEnumerable<StateField> GetStateFields()

Returns

IEnumerable<StateField>

GetTerms()

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

public override IEnumerable<Term> GetTerms()

Returns

IEnumerable<Term>

GetValue<T>(object?, ProgressionManager, T)

public override int GetValue<T>(object? sender, ProgressionManager pm, T state) where T : IState

Parameters

sender object
pm ProgressionManager
state T

Returns

int

Type Parameters

T

TryMatch(LogicManager, string, out LogicVariable)

public static bool TryMatch(LogicManager lm, string term, out LogicVariable variable)

Parameters

lm LogicManager
term string
variable LogicVariable

Returns

bool