Skip to main content

EquipmentModeQuickAccess

A class in Root.Township, Alta.QuickAccessActions.

Quick access action that switches the local player between playing and equipment mode. Client only.

Constructors​

MemberWhat it is
EquipmentModeQuickAccess()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private bool isValidWhether a playing/equipment transition was available at the last check.

Properties​

MemberWhat it is
override bool IsActive { get; }True while the player is in the equipment state.
override bool IsValid { get; }True if a playing/equipment transition is available and the player isn't downed.

Methods​

MemberWhat it is
override void Close()Stops watching player state changes.
override void Open()Watches player state changes and checks whether a switch is possible.
override void Run(Controller controller)Triggers the switch into or out of equipment mode.
1 private and internal method
MemberWhat it is
private void UpdateState(IPlayerState playerState)On a state change, rechecks whether a switch is possible and refreshes the bubble.