A class in Root.Township, Alta.QuickAccessActions.
Quick access action that switches the local player between playing and equipment mode. Client only.
Constructors
| Member | What it is |
|---|
EquipmentModeQuickAccess() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
| Member | What it is |
|---|
private bool isValid | Whether a playing/equipment transition was available at the last check. |
Properties
| Member | What 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
| Member | What 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
| Member | What it is |
|---|
private void UpdateState(IPlayerState playerState) | On a state change, rechecks whether a switch is possible and refreshes the bubble. |