Skip to content

WeightedRoller.WeightTable

Namespace Nfty.Core.Generation in assembly Nfty.Ticket.

public readonly struct WeightedRoller.WeightTable

A weight table with its ordering and running totals already resolved. Both are fixed properties of the cookbook, so a caller that rolls the same table repeatedly should WeightedRoller.Prepare() it once and roll the result, instead of re-sorting and re-summing on every draw.