Table of Contents

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

int

Properties

Name

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

public override string Name { get; }

Property Value

string

Methods

GetTerms()

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

public override IEnumerable<Term> GetTerms()

Returns

IEnumerable<Term>

GetValue(object?, ProgressionManager)

public override int GetValue(object? sender, ProgressionManager pm)

Parameters

sender object
pm ProgressionManager

Returns

int