|
Eye of the Nile Docs
Everything you need to know to get started!
|
Stores and manages the set of active ability sets. These are the 4 abilities on the hotbar the player has equipped and can use. You can manage this in the unity editor with the Scriptables_ActiveAbilties scriptable object.
Documentation updated 8/11/2024
Public Member Functions | |
| void | VerifyAbilityForms () |
| BaseAbilityInfo | AbilityAt (int slotNumber) |
| returns the ability info at the given slot number. | |
| void | SetAbilityAt (int slotNumber, BaseAbilityInfo newAbilityInfo) |
| Sets the ability info at the given slot number to the provided BaseAbilityInfo. The currentForm of the ability info is updated to reflect the slot it’s now in. | |
Public Attributes | |
| BaseAbilityInfo | offenseSlot |
| Ability info representing the ability set in offense slot. | |
| BaseAbilityInfo | defenseSlot |
| Ability info representing the ability set in defense slot. | |
| BaseAbilityInfo | utilitySlot |
| Ability info representing the ability set in utility slot. | |
| BaseAbilityInfo | passiveSlot |
| Ability info representing the ability set in passive slot. | |
Properties | |
| bool | QueueRefresh = false [get, set] |
| True is a change has been made to the active abilities. This allows PlayerAbilityController.cs to know it should update the ability hotbar display in the bottom left. | |
| List< int > | RefreshSlots = new List<int>() [get, set] |
| Containers all slots that have been changed since the last QueueRefresh. This allows PlayerAbilityController.cs to know what slots it needs to update in the ability hotbar display. | |
| BaseAbilityInfo ActiveAbilityData.AbilityAt | ( | int | slotNumber | ) |
returns the ability info at the given slot number.
| slotNumber |
| void ActiveAbilityData.SetAbilityAt | ( | int | slotNumber, |
| BaseAbilityInfo | newAbilityInfo ) |
Sets the ability info at the given slot number to the provided BaseAbilityInfo. The currentForm of the ability info is updated to reflect the slot it’s now in.
| slotNumber | |
| newAbilityInfo |
| void ActiveAbilityData.VerifyAbilityForms | ( | ) |
| BaseAbilityInfo ActiveAbilityData.defenseSlot |
Ability info representing the ability set in defense slot.
| BaseAbilityInfo ActiveAbilityData.offenseSlot |
Ability info representing the ability set in offense slot.
| BaseAbilityInfo ActiveAbilityData.passiveSlot |
Ability info representing the ability set in passive slot.
| BaseAbilityInfo ActiveAbilityData.utilitySlot |
Ability info representing the ability set in utility slot.
|
getset |
True is a change has been made to the active abilities. This allows PlayerAbilityController.cs to know it should update the ability hotbar display in the bottom left.
|
getset |
Containers all slots that have been changed since the last QueueRefresh. This allows PlayerAbilityController.cs to know what slots it needs to update in the ability hotbar display.