Search Results for

    Show / Hide Table of Contents

    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
    DewNetworkBehaviour
    Actor
    AbilityTrigger
    AttackTrigger
    Implements
    ILogicUpdate
    ICleanup
    ICustomDestroyRoutine
    Inherited Members
    AbilityTrigger.isDestroyedOnRoomChange
    AbilityTrigger.takenCooldownReductionProcessor
    AbilityTrigger.takenCooldownReductionByRatioProcessor
    AbilityTrigger.ClientTriggerEvent_OnCurrentConfigCharged
    AbilityTrigger.ClientTriggerEvent_OnCurrentConfigCooldownReduced
    AbilityTrigger.ClientTriggerEvent_OnCooldownReduced
    AbilityTrigger.ClientTriggerEvent_OnCooldownReducedByRatio
    AbilityTrigger.owner
    AbilityTrigger.ClientEvent_OnOwnerChanged
    AbilityTrigger.currentConfigIndex
    AbilityTrigger.ignoreRangeCheck
    AbilityTrigger.fillAmount
    AbilityTrigger.currentUnscaledCooldownTimes
    AbilityTrigger.currentCharges
    AbilityTrigger.currentMinimumDelays
    AbilityTrigger.currentConfig
    AbilityTrigger.currentConfigMaxCooldownTime
    AbilityTrigger.currentConfigUnscaledMaxCooldownTime
    AbilityTrigger.currentConfigCooldownTime
    AbilityTrigger.currentConfigUnscaledCooldownTime
    AbilityTrigger.currentConfigCurrentCharge
    AbilityTrigger.currentConfigCurrentMinimumDelay
    AbilityTrigger.TriggerEvent_OnCastStart
    AbilityTrigger.TriggerEvent_OnCastComplete
    AbilityTrigger.TriggerEvent_OnCastCompleteBeforePrepare
    AbilityTrigger.configs
    AbilityTrigger.currentPassiveEffect
    AbilityTrigger.currentConfigChangeHandle
    AbilityTrigger.abilityIndex
    AbilityTrigger.OnCreate()
    AbilityTrigger.GetCooldownTimeMultiplierByAbilityHaste(float)
    AbilityTrigger.GetMaxCooldownTime(int, bool)
    AbilityTrigger.GetCooldownTimeOffset(int)
    AbilityTrigger.UndoChangeConfig()
    AbilityTrigger.ChangeConfigTimed(int, float, Action<EventInfoAbilityInstance>, Action, bool)
    AbilityTrigger.ChangeConfigTimedOnce(int, float, Action<EventInfoAbilityInstance>, Action, bool)
    AbilityTrigger.OnSerialize(NetworkWriter, bool)
    AbilityTrigger.OnDeserialize(NetworkReader, bool)
    AbilityTrigger.OnCastCancel(int, CastInfo)
    AbilityTrigger.GetInstanceSpawnPosition(int, CastInfo)
    AbilityTrigger.GetInstanceSpawnRotation(int, CastInfo)
    AbilityTrigger.OnCastCompleteSpendMana(int, CastInfo)
    AbilityTrigger.ShouldTickCooldown(int)
    AbilityTrigger.LogicUpdate(float)
    AbilityTrigger.OnStartServer()
    AbilityTrigger.OnStopServer()
    AbilityTrigger.OnEquip(Entity)
    AbilityTrigger.OnUnequip(Entity)
    AbilityTrigger.OnConfigChanged(int, int)
    AbilityTrigger.SetCooldownTime(int, float, bool)
    AbilityTrigger.SetCooldownTimeAll(float, bool)
    AbilityTrigger.SetCharge(int, int)
    AbilityTrigger.SetChargeAll(int)
    AbilityTrigger.SetMinimumDelay(int, float)
    AbilityTrigger.SetMinimumDelayAll(float)
    AbilityTrigger.CanBeCast()
    AbilityTrigger.CanBeReserved()
    AbilityTrigger.GetActorReadableName()
    AbilityTrigger.IsTargetInRange(Entity)
    AbilityTrigger.IsConfigLocked(int)
    AbilityTrigger.SyncCastMethodChanges(int)
    AbilityTrigger.LockCooldown(int)
    AbilityTrigger.UnlockCooldown(int)
    AbilityTrigger.ProcessReceivedCooldownReduction(ref CooldownReductionSettings, Actor)
    AbilityTrigger.ProcessReceivedCooldownReductionByRatio(ref CooldownReductionByRatioSettings, Actor)
    AbilityTrigger.GetPredictedCastInfoToTarget(Entity)
    AbilityTrigger.GetPredictedCastInfoToTarget(Entity, float)
    AbilityTrigger.GetCastInfoToTarget(Entity)
    AbilityTrigger.PredictPoint_Simple(float, Entity, float)
    AbilityTrigger.PredictPointClamped_Simple(float, Entity, Vector3, float, float)
    AbilityTrigger.PredictAngle_Simple(float, Entity, Vector3, float)
    AbilityTrigger.PredictTime_SpeedAcceleration(Entity, Vector3, float, float, float, float, float)
    AbilityTrigger.PredictPoint_SpeedAcceleration(float, Entity, Vector3, float, float, float, float, float)
    AbilityTrigger.PredictPointClamped_SpeedAcceleration(float, Entity, Vector3, float, float, float, float, float, float)
    AbilityTrigger.PredictAngle_SpeedAcceleration(float, Entity, Vector3, float, float, float, float, float)
    Actor.TrackKills(float, Action<EventInfoKill>)
    Actor.CustomRpc_RegisterClientMessageHandler<T>(Action<T>)
    Actor.CustomRpc_ClearClientMessageHandlers()
    Actor.CustomRpc_UnregisterClientMessageHandler<T>()
    Actor.CustomRpc_UnregisterClientMessageHandler<T>(Action<T>)
    Actor.CustomRpc_RegisterServerMessageHandler<T>(Action<T>)
    Actor.CustomRpc_RegisterServerMessageHandler<T>(string, Action<T, DewPlayer>)
    Actor.CustomRpc_ClearServerMessageHandlers()
    Actor.CustomRpc_UnregisterServerMessageHandler<T>()
    Actor.CustomRpc_UnregisterServerMessageHandler<T>(Action<T>)
    Actor.CustomRpc_UnregisterServerMessageHandler<T>(Action<T, DewPlayer>)
    Actor.CustomRpc_SendMessageToServer<T>(T)
    Actor.CustomRpc_SendMessageToClient<T>(DewPlayer, T)
    Actor.CustomRpc_SendMessageToAllClients<T>(T)
    Actor.ActorEvent_OnAbilityInstanceCreated
    Actor.ActorEvent_OnAbilityInstanceBeforePrepare
    Actor.ActorEvent_OnDealDamage
    Actor.ActorEvent_OnDoHeal
    Actor.ActorEvent_OnDoManaHeal
    Actor.ActorEvent_OnSpendMana
    Actor.ActorEvent_OnKill
    Actor.ActorEvent_OnAttackHit
    Actor.ActorEvent_OnAttackEffectTriggered
    Actor.ActorEvent_OnSpawnSummon
    Actor.ActorEvent_OnApplyElemental
    Actor.ActorEvent_OnGiveShield
    Actor.ClientActorEvent_OnDestroyed
    Actor.ClientActorEvent_OnCreate
    Actor.DoHeal(HealData, Entity, ReactionChain)
    Actor.DoManaHeal(HealData, Entity, ReactionChain)
    Actor.DefaultDamage(float, float)
    Actor.PhysicalDamage(float, float)
    Actor.MagicDamage(float, float)
    Actor.PureDamage(float, float)
    Actor.CreateDamage(DamageData.SourceType, float, float)
    Actor.Heal(float)
    Actor.DealDamage(DamageData, Entity, ReactionChain)
    Actor.DoBasicAttackHit(Entity, bool, bool, float, float)
    Actor.TriggerAttackEffects(Entity, float, AttackEffectType, ReactionChain)
    Actor.RefundMana(float, Entity)
    Actor.SpendMana(float, Entity)
    Actor.CreateAbilityInstance<T>(T, Vector3, Quaternion?, CastInfo, Action<T>)
    Actor.CreateAbilityInstance<T>(Vector3, Quaternion?, CastInfo, Action<T>)
    Actor.CreateAbilityInstance(Type, Vector3, Quaternion?, CastInfo, Action<AbilityInstance>)
    Actor.CreateStatusEffect<T>(T, Entity, CastInfo, Action<T>)
    Actor.CreateStatusEffect<T>(Entity, CastInfo, Action<T>)
    Actor.CreateStatusEffect(Type, Entity, CastInfo, Action<StatusEffect>)
    Actor.GiveShield(Entity, float, float, bool, ReactionChain)
    Actor.CreateActor<T>(Vector3, Quaternion?, Action<T>)
    Actor.CreateActor<T>(T, Vector3, Quaternion?, Action<T>)
    Actor.SpawnEntity<T>(Vector3, Quaternion?, DewPlayer, int, Action<T>)
    Actor.SpawnEntity<T>(T, Vector3, Quaternion?, DewPlayer, int, Action<T>)
    Actor.Teleport(Entity, Vector3)
    Actor.ShowOnScreenTimerLocally(OnScreenTimerHandle)
    Actor.HideOnScreenTimerLocally(OnScreenTimerHandle)
    Actor.ApplyElemental(ElementalType, Entity, int)
    Actor.KilledByUnstoppableEffects
    Actor.ScaleDurationByTenacityEffects
    Actor.CreateBasicEffect(Entity, BasicEffect, float, string, DuplicateEffectBehavior)
    Actor.SpawnSummon<T>(Vector3, Quaternion?, Action<T>)
    Actor.ApplyCooldownReduction(AbilityTrigger, float, bool, bool)
    Actor.ApplyCooldownReductionByRatio(AbilityTrigger, float, bool)
    Actor.ResetCooldown(AbilityTrigger, bool)
    Actor.ApplyCooldownReductionByRatio(AbilityTrigger, CooldownReductionByRatioSettings)
    Actor.ApplyCooldownReduction(AbilityTrigger, CooldownReductionSettings)
    Actor.dealtDamageProcessor
    Actor.dealtHealProcessor
    Actor.dealtManaHealProcessor
    Actor.dealtShieldProcessor
    Actor.dealtCooldownReductionProcessor
    Actor.dealtCooldownReductionByRatioProcessor
    Actor.spawnedChildVarDefProcessor
    Actor.ProcessShieldAmount(float, Entity)
    Actor.ProcessSpawnedChildVarDefProcessor(ref VariantDef, Type)
    Actor.persistentData
    Actor.persistentSyncedData
    Actor.ClientEvent_OnPersistentSyncedDataChanged
    Actor.OnCreate_ActorData()
    Actor.HasData<T>()
    Actor.RemoveData<T>()
    Actor.RemoveData(object)
    Actor.AddData<T>(T)
    Actor.TryGetData<T>(out T)
    Actor.GetData<T>()
    Actor.FindData<T>(Predicate<T>)
    Actor.TryFindData<T>(Predicate<T>, out T)
    Actor.isNewInstance
    Actor.creationTime
    Actor.persistentNetId
    Actor.isDestroyLocked
    Actor.parentActor
    Actor.position
    Actor.rotation
    Actor.chainTempName
    Actor.children
    Actor.childrenInNetwork
    Actor.OnStart()
    Actor.OnStartClient()
    Actor.FrameUpdate()
    Actor.ActiveFrameUpdate()
    Actor.ActiveLogicUpdate(float)
    Actor.ToString()
    Actor.CustomDestroyRoutine()
    Actor.ICleanup.canDestroy
    Actor.ICleanup.OnCleanup()
    Actor.isActive
    Actor.isDestroyed
    Actor.OnPrepare()
    Actor.OnDestroyActor()
    Actor.OnStopClient()
    Actor.OnEnable()
    Actor.OnDisable()
    Actor.ShouldBeSavedWithRoom()
    Actor.ICustomDestroyRoutine.CustomDestroyRoutine()
    Actor.GetNetworkAuthorityConnection()
    Actor.GetOriginalName()
    Actor.parentActorNetId
    Actor.ancestors
    Actor.firstEntity
    Actor.firstTrigger
    Actor.IsDescendantOf(Actor)
    Actor.IsDescendantOf<T>()
    Actor.FindFirstAncestorOfType<T>()
    Actor.FindFirstOfType<T>()
    Actor.Destroy()
    Actor.DestroyIfActive()
    Actor.LockDestroy()
    Actor.UnlockDestroy()
    Actor.IsExcludedFromRoomSave()
    Actor.ExcludeFromRoomSave()
    Actor.ClearExcludeFromRoomSave()
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxStopNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNew(GameObject)
    DewNetworkBehaviour.FxPlayNew(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNew(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNew(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlay(GameObject)
    DewNetworkBehaviour.FxPlay(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlay(GameObject, Entity)
    DewNetworkBehaviour.FxPlay(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxStop(GameObject)
    DewNetworkBehaviour.FxApplySpeedMultiplier(GameObject, float)
    DewNetworkBehaviour.FxApplySpeedMultiplierNetworked(GameObject, float)
    DewNetworkBehaviour.InvalidateInstance()
    DewNetworkBehaviour.OnLateStart()
    DewNetworkBehaviour.OnLateStartServer()
    DewNetworkBehaviour.OnStop()
    DewNetworkBehaviour.OnDestroy()
    DewNetworkBehaviour.GetComponent<T>(out T)
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    public class AttackTrigger : AbilityTrigger, ILogicUpdate, ICleanup, ICustomDestroyRoutine

    Fields

    allowNonTargetedCast

    Declaration
    public bool allowNonTargetedCast
    Field Value
    Type Description
    bool

    factor

    Declaration
    public ScalingValue factor
    Field Value
    Type Description
    ScalingValue

    Methods

    Awake()

    Declaration
    protected override void Awake()
    Overrides
    AbilityTrigger.Awake()

    CallAttackCompleteBeforePrepareRoutines(EventInfoCast)

    Declaration
    public void CallAttackCompleteBeforePrepareRoutines(EventInfoCast cast)
    Parameters
    Type Name Description
    EventInfoCast cast

    CallAttackCompleteRoutines(AbilityInstance, int, CastInfo)

    Declaration
    public void CallAttackCompleteRoutines(AbilityInstance newInstance, int configIndex, CastInfo info)
    Parameters
    Type Name Description
    AbilityInstance newInstance
    int configIndex
    CastInfo info

    GetAnimationSpeed()

    Declaration
    public override float GetAnimationSpeed()
    Returns
    Type Description
    float
    Overrides
    AbilityTrigger.GetAnimationSpeed()

    GetChannelDurationMultiplier()

    Declaration
    public override float GetChannelDurationMultiplier()
    Returns
    Type Description
    float
    Overrides
    AbilityTrigger.GetChannelDurationMultiplier()

    GetCooldownTimeMultiplier(int)

    Declaration
    public override float GetCooldownTimeMultiplier(int configIndex)
    Parameters
    Type Name Description
    int configIndex
    Returns
    Type Description
    float
    Overrides
    AbilityTrigger.GetCooldownTimeMultiplier(int)

    GetPostDelayDurationMultiplier()

    Declaration
    public override float GetPostDelayDurationMultiplier()
    Returns
    Type Description
    float
    Overrides
    AbilityTrigger.GetPostDelayDurationMultiplier()

    OnCastCancelSetCooldownTime(int, CastInfo)

    Declaration
    protected override void OnCastCancelSetCooldownTime(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Overrides
    AbilityTrigger.OnCastCancelSetCooldownTime(int, CastInfo)

    OnCastComplete(int, CastInfo)

    Declaration
    public override AbilityInstance OnCastComplete(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Returns
    Type Description
    AbilityInstance
    Overrides
    AbilityTrigger.OnCastComplete(int, CastInfo)

    OnCastCompleteBeforePrepare(EventInfoCast)

    Declaration
    public override void OnCastCompleteBeforePrepare(EventInfoCast cast)
    Parameters
    Type Name Description
    EventInfoCast cast
    Overrides
    AbilityTrigger.OnCastCompleteBeforePrepare(EventInfoCast)

    OnCastCompleteSetCharge(int, CastInfo)

    Declaration
    public override void OnCastCompleteSetCharge(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Overrides
    AbilityTrigger.OnCastCompleteSetCharge(int, CastInfo)

    OnCastCompleteSetCooldownTime(int, CastInfo)

    Declaration
    public override void OnCastCompleteSetCooldownTime(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Overrides
    AbilityTrigger.OnCastCompleteSetCooldownTime(int, CastInfo)

    OnCastCompleteSetMinimumDelay(int, CastInfo)

    Declaration
    public override void OnCastCompleteSetMinimumDelay(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Overrides
    AbilityTrigger.OnCastCompleteSetMinimumDelay(int, CastInfo)

    OnCastStart(int, CastInfo)

    Declaration
    public override void OnCastStart(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Overrides
    AbilityTrigger.OnCastStart(int, CastInfo)

    OnRotateForward(int, CastInfo)

    Declaration
    protected override void OnRotateForward(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Overrides
    AbilityTrigger.OnRotateForward(int, CastInfo)

    OnStartChannel(int, CastInfo)

    Declaration
    protected override void OnStartChannel(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Overrides
    AbilityTrigger.OnStartChannel(int, CastInfo)

    ProcessRange(float)

    Declaration
    public override float ProcessRange(float original)
    Parameters
    Type Name Description
    float original
    Returns
    Type Description
    float
    Overrides
    AbilityTrigger.ProcessRange(float)

    UpdateConfigIndexForCrit()

    Declaration
    public void UpdateConfigIndexForCrit()

    Implements

    ILogicUpdate
    ICleanup
    ICustomDestroyRoutine

    Extension Methods

    ActorCheck.IsNullOrInactive(Actor)
    DewGUI.SetExpandHeight<T>(T, bool)
    DewGUI.SetExpandHeight<T>(T, float)
    DewGUI.SetExpandWidth<T>(T, bool)
    DewGUI.SetExpandWidth<T>(T, float)
    DewGUI.SetHeight<T>(T, float)
    DewGUI.SetText<T>(T, string)
    DewGUI.SetTextLocalized<T>(T, string)
    DewGUI.SetWidth<T>(T, float)
    In This Article
    Back to top Shape of Dreams API Documentation