RandomPooledObjectDefinition.PooledObjectElement
A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
One weighted choice in a RandomPooledObjectDefinition. Note the parent's pick casts Random.value to int before scaling, so in practice it nearly always returns the first entry.
- Listed in Global namespace: Q to R
- Nested in
RandomPooledObjectDefinition
Constructors
| Member | What it is |
|---|---|
PooledObjectElement() | Creates a RandomPooledObjectDefinition.PooledObjectElement with default values. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private PooledObjectDefinition definition | Backing field for Definition. |
private int weight | Backing field for Weight. |
Properties
| Member | What it is |
|---|---|
PooledObjectDefinition Definition { get; } | The pooled object definition this entry spawns. |
int Weight { get; } | Relative chance of this entry being picked. |
Used in
Members of other types that take, return or hold a PooledObjectElement: