Table of Contents

Method Pick

Namespace
GrindFest.Content
Assembly
GrindFest.dll

Pick(IReadOnlyList<ContentDef>, Random)

Picks one entry with the game's deterministic random (never returns an item when the list is empty). Takes the Random explicitly so callers keep using the synchronised generator.

public static ContentDef Pick(IReadOnlyList<ContentDef> candidates, Random random)

Parameters

candidates IReadOnlyList<ContentDef>
random Random

Returns

ContentDef