A class in Root.Township, Alta.PAGaC.
A PAGaC asset tying a rule to the parts it can place. Each part, and each nested option set, is rolled against its weight.
Constructors
| Member | What it is |
|---|
RuleOptionSet() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private bool isWeightingIndividual | Backing field for IsWeightingIndividual. |
private LockMode lockMode | Backing field for LockMode. |
private PartChance[] parts | Parts with their chances. |
private Rule rule | Backing field for Rule. |
private RuleOptionSetChance[] ruleOptionSets | Nested option sets with their chances. |
Properties
| Member | What it is |
|---|
bool IsWeightingIndividual { get; } | Serialized flag; not read anywhere in this build. |
LockMode LockMode { get; } | The lock mode set on the asset; not read anywhere in this build. |
Rule Rule { get; } | The rule these options apply to. |
Methods
| Member | What it is |
|---|
void Evaluate(List<Part> results) | Adds each part that passes its random weight roll to the list, then evaluates nested option sets that pass theirs. |
Used in
Members of other types that take, return or hold a RuleOptionSet: