Table of Contents

Class RandomizationGroup

Namespace
RandomizerCore.Randomization
Assembly
RandomizerCore.dll

A group of Items and Locations matched in length, for the randomizer to output in RandoPlacement pairs.

public class RandomizationGroup
Inheritance
RandomizationGroup
Derived
Inherited Members

Fields

Items

public IRandoItem[] Items

Field Value

IRandoItem[]

Label

public string Label

Field Value

string

Locations

public IRandoLocation[] Locations

Field Value

IRandoLocation[]

Strategy

public GroupPlacementStrategy Strategy

Field Value

GroupPlacementStrategy

Validator

public Validator Validator

Field Value

Validator

Methods

InvokeOnPermute(Random)

public void InvokeOnPermute(Random rng)

Parameters

rng Random

OnNewAttempt()

Called on each new attempt of the randomizer.

public virtual void OnNewAttempt()

Events

OnPermute

An event invoked after the items and locations of the group are permuted and have their priorities set.
It is expected that the subscriber may modify the priorities of entries, and the arrays are resorted after the event is invoked.

public event Action<Random, RandomizationGroup>? OnPermute

Event Type

Action<Random, RandomizationGroup>