Table of Contents

Class LogicTransition

Namespace
RandomizerCore.Logic
Assembly
RandomizerCore.dll
public class LogicTransition : ILogicDef, ILocationDependentItem, ILogicItem, ILocationWaypoint
Inheritance
LogicTransition
Implements
Inherited Members

Fields

logic

public readonly StateLogicDef logic

Field Value

StateLogicDef

term

public readonly Term term

Field Value

Term

Properties

Name

public string Name { get; }

Property Value

string

Methods

AddTo(ProgressionManager)

Directly adds the item to the pm. This does not invoke the pm events, so it is best to implement this explicitly and use pm.Add instead.

public void AddTo(ProgressionManager pm)

Parameters

pm ProgressionManager

CanGet(ProgressionManager)

public bool CanGet(ProgressionManager pm)

Parameters

pm ProgressionManager

Returns

bool

GetAffectedTerms()

Returns the pm indices potentially modified by the item.

public IEnumerable<Term> GetAffectedTerms()

Returns

IEnumerable<Term>

GetReachableEffect()

Returns a logic item which applies an effect when the location becomes reachable.

public ILogicItem GetReachableEffect()

Returns

ILogicItem

GetTerms()

public IEnumerable<Term> GetTerms()

Returns

IEnumerable<Term>

Place(ProgressionManager, ILogicDef)

Directly performs the action of the location-dependent item on the pm. This does not invoke pm events, so consumers should invoke the corresponding method on the pm.

public void Place(ProgressionManager pm, ILogicDef location)

Parameters

pm ProgressionManager
location ILogicDef