Skip to main content

PartChance

A class in Root.Township, Alta.PAGaC.

A PAGaC part with a 0 to 1 chance of being picked, used in RuleOptionSet and option set lists.

Constructors​

MemberWhat it is
PartChance()Creates a PartChance with default values.

Fields​

2 private and internal fields
MemberWhat it is
private Part partBacking field for Part.
private float weightBacking field for Weight.

Properties​

MemberWhat it is
Part Part { get; }The part that may be added.
float Weight { get; }Chance from 0 to 1 that the part is added (default 1).

Used in​

Members of other types that take, return or hold a PartChance: