Skip to main content

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.

Constructors​

MemberWhat it is
UnlockingPermissionsSetup()Creates a PlayerUnlock.UnlockingPermissionsSetup with default values.

Fields​

7 private and internal fields
MemberWhat it is
private LayerMask climbLayerBacking field for Climb.
private bool overrideClimbBacking field for OverrideClimb.
private bool overrideTeleportBacking field for OverrideTeleport.
private bool shouldModifyMaxStatBacking field for ShouldModifyStat.
private MaxStatDefinition statToModifyBacking field for StatToModify.
private LayerMask teleportLayerBacking field for Teleport.
private float valueToAddToMaxStatBacking field for ValueToAddToMaxStat.

Properties​

MemberWhat 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: