PlayerUnlock.UnlockingPermissionsSetup
A class in Root.Township, the global namespace.
What a PlayerUnlock changes while active: optional teleport and climb layer overrides and an optional bump to a max stat.
- Listed in Global namespace: P
- Nested in
PlayerUnlock
Constructors
| Member | What it is |
|---|---|
UnlockingPermissionsSetup() | Creates a PlayerUnlock.UnlockingPermissionsSetup with default values. |
Fields
7 private and internal fields
| Member | What it is |
|---|---|
private LayerMask climbLayer | Backing field for Climb. |
private bool overrideClimb | Backing field for OverrideClimb. |
private bool overrideTeleport | Backing field for OverrideTeleport. |
private bool shouldModifyMaxStat | Backing field for ShouldModifyStat. |
private MaxStatDefinition statToModify | Backing field for StatToModify. |
private LayerMask teleportLayer | Backing field for Teleport. |
private float valueToAddToMaxStat | Backing field for ValueToAddToMaxStat. |
Properties
| Member | What it is |
|---|---|
LayerMask Climb { get; } | Layers the player may climb when OverrideClimb is set. |
bool OverrideClimb { get; } | If true, ClimbingHandler uses Climb instead of the normal climbable layers. |
bool OverrideTeleport { get; } | If true, the unlock overrides which layers the player can teleport onto, using Teleport. |
bool ShouldModifyStat { get; } | If true, applying the unlock raises StatToModify by ValueToAddToMaxStat, and removing it lowers it again. |
MaxStatDefinition StatToModify { get; } | Max stat changed when ShouldModifyStat is set. |
LayerMask Teleport { get; } | Layers the player may teleport onto when OverrideTeleport is set. |
float ValueToAddToMaxStat { get; } | Amount added to both the stat's maximum and its base value. |
Used in
Members of other types that take, return or hold a UnlockingPermissionsSetup: