Table of Contents

Class MainUpdater

Namespace
RandomizerCore.Logic
Assembly
RandomizerCore.dll

Class which indexes subscribers by their dependency on progression terms to optimize updating in response to new progression.

public class MainUpdater
Inheritance
MainUpdater
Inherited Members

Constructors

MainUpdater(LogicManager, ProgressionManager)

public MainUpdater(LogicManager lm, ProgressionManager pm)

Parameters

lm LogicManager
pm ProgressionManager

Properties

Current

public object? Current { get; }

Property Value

object

HasCustomLongTermRevertPoint

public bool HasCustomLongTermRevertPoint { get; }

Property Value

bool

Methods

AddEntries(IEnumerable<UpdateEntry>)

public void AddEntries(IEnumerable<UpdateEntry> entries)

Parameters

entries IEnumerable<UpdateEntry>

AddEntry(UpdateEntryBase)

public void AddEntry(UpdateEntryBase entry)

Parameters

entry UpdateEntryBase

AddManagedStates(IEnumerable<(Term, StateLogicDef)>)

Adds entries which manage the state term according to its paired logic.
Nonstate terms in the sequence are ignored.

public void AddManagedStates(IEnumerable<(Term, StateLogicDef)> ts)

Parameters

ts IEnumerable<(Term, StateLogicDef)>

AddPMHook(PMHook)

public void AddPMHook(PMHook hook)

Parameters

hook PMHook

AddPlacements(IEnumerable<GeneralizedPlacement>)

public void AddPlacements(IEnumerable<GeneralizedPlacement> ps)

Parameters

ps IEnumerable<GeneralizedPlacement>

AddPlacements(IEnumerable<RandoPlacement>)

public void AddPlacements(IEnumerable<RandoPlacement> ps)

Parameters

ps IEnumerable<RandoPlacement>

AddTransitions(IEnumerable<LogicTransition>)

Adds entries which manage state for each transition.

public void AddTransitions(IEnumerable<LogicTransition> ts)

Parameters

ts IEnumerable<LogicTransition>

AddWaypoints(IEnumerable<LogicWaypoint>)

Adds entries with default waypoint behavior, inferring bool- or state-behavior based on term type.

public void AddWaypoints(IEnumerable<LogicWaypoint> ps)

Parameters

ps IEnumerable<LogicWaypoint>

Clear()

Removes all update entries from the updater, and clears its events.

public void Clear()

DoUpdate(int)

public void DoUpdate(int term)

Parameters

term int

DoUpdateAll()

public void DoUpdateAll()

DoUpdates()

public void DoUpdates()

EnqueueUpdates(ILogicItem)

public void EnqueueUpdates(ILogicItem item)

Parameters

item ILogicItem

EnqueueUpdates(IEnumerable<ILogicItem>)

public void EnqueueUpdates(IEnumerable<ILogicItem> items)

Parameters

items IEnumerable<ILogicItem>

LinkState(Term, Term)

public void LinkState(Term source, Term target)

Parameters

source Term
target Term

LogAll()

public void LogAll()

OnEndTemp(bool)

public void OnEndTemp(bool saved)

Parameters

saved bool

Reset()

Resets each update entry in the updater.

public void Reset()

RevertLong()

Resets the MU and rolls back entry list to the long term revert point.

public void RevertLong()

SetLongTermRevertPoint()

public void SetLongTermRevertPoint()

StartUpdating()

public void StartUpdating()

StopUpdating()

public void StopUpdating()

Events

OnReset

public event Action? OnReset

Event Type

Action