Class AttackTrigger
AttackTrigger has following behaviours:
1. Canceled channels will not put the ability on cooldown.
2. Channel/Cooldown ticks and animation speed will be scaled accordingly to attack speed bonuses/debuffs.
3. Cooldown time applied on OnChannelComplete will get a deduction by the amount of the time it took to channel.
4. Current configuration index will be set to 1 if the next attack is critical hit (if there is a second configuration), otherwise 0.
5. Cooldown time/Minimum delay will be shared between configurations.
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
AttackTrigger
Assembly: Dew.Core.dll
Syntax
public class AttackTrigger : AbilityTrigger, ILogicUpdate, ICleanup, ICustomDestroyRoutine
Fields
allowNonTargetedCast
Declaration
public bool allowNonTargetedCast
Field Value
factor
Declaration
public ScalingValue factor
Field Value
Methods
Awake()
Declaration
protected override void Awake()
Overrides
CallAttackCompleteBeforePrepareRoutines(EventInfoCast)
Declaration
public void CallAttackCompleteBeforePrepareRoutines(EventInfoCast cast)
Parameters
CallAttackCompleteRoutines(AbilityInstance, int, CastInfo)
Declaration
public void CallAttackCompleteRoutines(AbilityInstance newInstance, int configIndex, CastInfo info)
Parameters
GetAnimationSpeed()
Declaration
public override float GetAnimationSpeed()
Returns
Overrides
GetChannelDurationMultiplier()
Declaration
public override float GetChannelDurationMultiplier()
Returns
Overrides
GetCooldownTimeMultiplier(int)
Declaration
public override float GetCooldownTimeMultiplier(int configIndex)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
Returns
Overrides
GetPostDelayDurationMultiplier()
Declaration
public override float GetPostDelayDurationMultiplier()
Returns
Overrides
OnCastCancelSetCooldownTime(int, CastInfo)
Declaration
protected override void OnCastCancelSetCooldownTime(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Overrides
OnCastComplete(int, CastInfo)
Declaration
public override AbilityInstance OnCastComplete(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Returns
Overrides
OnCastCompleteBeforePrepare(EventInfoCast)
Declaration
public override void OnCastCompleteBeforePrepare(EventInfoCast cast)
Parameters
Overrides
OnCastCompleteSetCharge(int, CastInfo)
Declaration
public override void OnCastCompleteSetCharge(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Overrides
OnCastCompleteSetCooldownTime(int, CastInfo)
Declaration
public override void OnCastCompleteSetCooldownTime(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Overrides
OnCastCompleteSetMinimumDelay(int, CastInfo)
Declaration
public override void OnCastCompleteSetMinimumDelay(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Overrides
OnCastStart(int, CastInfo)
Declaration
public override void OnCastStart(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Overrides
OnRotateForward(int, CastInfo)
Declaration
protected override void OnRotateForward(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Overrides
OnStartChannel(int, CastInfo)
Declaration
protected override void OnStartChannel(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Overrides
ProcessRange(float)
Declaration
public override float ProcessRange(float original)
Parameters
| Type |
Name |
Description |
| float |
original |
|
Returns
Overrides
UpdateConfigIndexForCrit()
Declaration
public void UpdateConfigIndexForCrit()
Implements
Extension Methods