Search Results for

    Show / Hide Table of Contents

    Class AbilityTrigger

    "Buttons" that entities can press to spawn an instance of abilities.

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    Mirror.NetworkBehaviour
    DewNetworkBehaviour
    Actor
    AbilityTrigger
    AttackTrigger
    SkillTrigger
    Implements
    ILogicUpdate
    ICleanup
    ICustomDestroyRoutine
    Inherited Members
    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
    [LogicUpdatePriority(-300)]
    public class AbilityTrigger : Actor, ILogicUpdate, ICleanup, ICustomDestroyRoutine

    Fields

    ClientEvent_OnOwnerChanged

    Declaration
    public SafeAction<Entity, Entity> ClientEvent_OnOwnerChanged
    Field Value
    Type Description
    SafeAction<Entity, Entity>

    ClientTriggerEvent_OnCooldownReduced

    configIndex, reductionAmount. Note the amount is non-discarded variant. e.g. Applying 100 seconds cooldown reduction to a 3 seconds skill will still report 100 seconds reduction.

    Declaration
    public SafeAction<int, float> ClientTriggerEvent_OnCooldownReduced
    Field Value
    Type Description
    SafeAction<int, float>

    ClientTriggerEvent_OnCooldownReducedByRatio

    Declaration
    public SafeAction<int, float> ClientTriggerEvent_OnCooldownReducedByRatio
    Field Value
    Type Description
    SafeAction<int, float>

    ClientTriggerEvent_OnCurrentConfigCharged

    Declaration
    public SafeAction ClientTriggerEvent_OnCurrentConfigCharged
    Field Value
    Type Description
    SafeAction

    ClientTriggerEvent_OnCurrentConfigCooldownReduced

    Declaration
    public SafeAction ClientTriggerEvent_OnCurrentConfigCooldownReduced
    Field Value
    Type Description
    SafeAction

    configs

    Declaration
    [ListDrawerSettings(Expanded = true)]
    public TriggerConfig[] configs
    Field Value
    Type Description
    TriggerConfig[]

    currentCharges

    Declaration
    [SaveVar(SaveVarFlags.ApplyAfterFrameDelay)]
    [NonSerialized]
    public int[] currentCharges
    Field Value
    Type Description
    int[]

    currentMinimumDelays

    Declaration
    [SaveVar(SaveVarFlags.ApplyAfterFrameDelay)]
    [NonSerialized]
    public float[] currentMinimumDelays
    Field Value
    Type Description
    float[]

    currentUnscaledCooldownTimes

    Declaration
    [SaveVar(SaveVarFlags.ApplyAfterFrameDelay)]
    [NonSerialized]
    public float[] currentUnscaledCooldownTimes
    Field Value
    Type Description
    float[]

    takenCooldownReductionByRatioProcessor

    Declaration
    public DataProcessorGroup<CooldownReductionByRatioSettings, Actor, AbilityTrigger> takenCooldownReductionByRatioProcessor
    Field Value
    Type Description
    DataProcessorGroup<CooldownReductionByRatioSettings, Actor, AbilityTrigger>

    takenCooldownReductionProcessor

    Declaration
    public DataProcessorGroup<CooldownReductionSettings, Actor, AbilityTrigger> takenCooldownReductionProcessor
    Field Value
    Type Description
    DataProcessorGroup<CooldownReductionSettings, Actor, AbilityTrigger>

    TriggerEvent_OnCastComplete

    Declaration
    public Action<EventInfoCast> TriggerEvent_OnCastComplete
    Field Value
    Type Description
    System.Action<T><EventInfoCast>

    TriggerEvent_OnCastCompleteBeforePrepare

    Declaration
    public Action<EventInfoCast> TriggerEvent_OnCastCompleteBeforePrepare
    Field Value
    Type Description
    System.Action<T><EventInfoCast>

    TriggerEvent_OnCastStart

    Declaration
    public Action<EventInfoCast> TriggerEvent_OnCastStart
    Field Value
    Type Description
    System.Action<T><EventInfoCast>

    Properties

    abilityIndex

    Ability index of this trigger if equipped to an entity.

    Declaration
    public int abilityIndex { get; }
    Property Value
    Type Description
    int

    currentConfig

    Declaration
    public TriggerConfig currentConfig { get; }
    Property Value
    Type Description
    TriggerConfig

    currentConfigChangeHandle

    Declaration
    public AbilityTrigger.ChangedConfigHandle currentConfigChangeHandle { get; }
    Property Value
    Type Description
    AbilityTrigger.ChangedConfigHandle

    currentConfigCooldownTime

    Declaration
    public float currentConfigCooldownTime { get; }
    Property Value
    Type Description
    float

    currentConfigCurrentCharge

    Declaration
    public int currentConfigCurrentCharge { get; }
    Property Value
    Type Description
    int

    currentConfigCurrentMinimumDelay

    Declaration
    public float currentConfigCurrentMinimumDelay { get; }
    Property Value
    Type Description
    float

    currentConfigIndex

    Declaration
    public int currentConfigIndex { get; set; }
    Property Value
    Type Description
    int

    currentConfigMaxCooldownTime

    Declaration
    public float currentConfigMaxCooldownTime { get; }
    Property Value
    Type Description
    float

    currentConfigUnscaledCooldownTime

    Declaration
    public float currentConfigUnscaledCooldownTime { get; }
    Property Value
    Type Description
    float

    currentConfigUnscaledMaxCooldownTime

    Declaration
    public float currentConfigUnscaledMaxCooldownTime { get; }
    Property Value
    Type Description
    float

    currentPassiveEffect

    Declaration
    public StatusEffect currentPassiveEffect { get; }
    Property Value
    Type Description
    StatusEffect

    fillAmount

    Declaration
    public float fillAmount { get; set; }
    Property Value
    Type Description
    float

    ignoreRangeCheck

    Declaration
    public bool ignoreRangeCheck { get; set; }
    Property Value
    Type Description
    bool

    isDestroyedOnRoomChange

    Declaration
    public override bool isDestroyedOnRoomChange { get; }
    Property Value
    Type Description
    bool
    Overrides
    Actor.isDestroyedOnRoomChange

    owner

    Declaration
    public Entity owner { get; set; }
    Property Value
    Type Description
    Entity

    Methods

    Awake()

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

    CanBeCast()

    Can this ability be cast? By default this checks charges/delay/mana cost/self validator/self applied status effects.
    This must return same value for everyone to ensure consistency.

    Declaration
    public virtual bool CanBeCast()
    Returns
    Type Description
    bool

    CanBeReserved()

    Can this ability be reserved? By default this checks everything that CanBeCast() checks but self validators.
    This must return same value for everyone to ensure consistency.

    Declaration
    public virtual bool CanBeReserved()
    Returns
    Type Description
    bool

    ChangeConfigTimed(int, float, Action<EventInfoAbilityInstance>, Action, bool)

    Declaration
    public AbilityTrigger.ChangedConfigHandle ChangeConfigTimed(int index, float duration, Action<EventInfoAbilityInstance> onUse = null, Action onExpire = null, bool setFillAmount = true)
    Parameters
    Type Name Description
    int index
    float duration
    System.Action<T><EventInfoAbilityInstance> onUse
    System.Action onExpire
    bool setFillAmount
    Returns
    Type Description
    AbilityTrigger.ChangedConfigHandle

    ChangeConfigTimedOnce(int, float, Action<EventInfoAbilityInstance>, Action, bool)

    Declaration
    public AbilityTrigger.ChangedConfigHandle ChangeConfigTimedOnce(int index, float duration, Action<EventInfoAbilityInstance> onUse = null, Action onExpire = null, bool setFillAmount = true)
    Parameters
    Type Name Description
    int index
    float duration
    System.Action<T><EventInfoAbilityInstance> onUse
    System.Action onExpire
    bool setFillAmount
    Returns
    Type Description
    AbilityTrigger.ChangedConfigHandle

    GetActorReadableName()

    Declaration
    public override string GetActorReadableName()
    Returns
    Type Description
    string
    Overrides
    Actor.GetActorReadableName()

    GetAnimationSpeed()

    Declaration
    public virtual float GetAnimationSpeed()
    Returns
    Type Description
    float

    GetCastInfoToTarget(Entity)

    Declaration
    public CastInfo GetCastInfoToTarget(Entity target)
    Parameters
    Type Name Description
    Entity target
    Returns
    Type Description
    CastInfo

    GetChannelDurationMultiplier()

    Declaration
    public virtual float GetChannelDurationMultiplier()
    Returns
    Type Description
    float

    GetCooldownTimeMultiplier(int)

    Declaration
    public virtual float GetCooldownTimeMultiplier(int configIndex)
    Parameters
    Type Name Description
    int configIndex
    Returns
    Type Description
    float

    GetCooldownTimeMultiplierByAbilityHaste(float)

    Declaration
    public static float GetCooldownTimeMultiplierByAbilityHaste(float abilityHaste)
    Parameters
    Type Name Description
    float abilityHaste
    Returns
    Type Description
    float

    GetCooldownTimeOffset(int)

    Declaration
    public virtual float GetCooldownTimeOffset(int configIndex)
    Parameters
    Type Name Description
    int configIndex
    Returns
    Type Description
    float

    GetInstanceSpawnPosition(int, CastInfo)

    Declaration
    protected virtual Vector3 GetInstanceSpawnPosition(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Returns
    Type Description
    UnityEngine.Vector3

    GetInstanceSpawnRotation(int, CastInfo)

    Declaration
    protected virtual Quaternion? GetInstanceSpawnRotation(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Returns
    Type Description
    UnityEngine.Quaternion?

    GetMaxCooldownTime(int, bool)

    Declaration
    public float GetMaxCooldownTime(int configIndex, bool scaled = true)
    Parameters
    Type Name Description
    int configIndex
    bool scaled
    Returns
    Type Description
    float

    GetPostDelayDurationMultiplier()

    Declaration
    public virtual float GetPostDelayDurationMultiplier()
    Returns
    Type Description
    float

    GetPredictedCastInfoToTarget(Entity, float)

    Declaration
    public CastInfo GetPredictedCastInfoToTarget(Entity target, float strength)
    Parameters
    Type Name Description
    Entity target
    float strength
    Returns
    Type Description
    CastInfo

    GetPredictedCastInfoToTarget(Entity)

    Declaration
    public CastInfo GetPredictedCastInfoToTarget(Entity target)
    Parameters
    Type Name Description
    Entity target
    Returns
    Type Description
    CastInfo

    IsConfigLocked(int)

    Declaration
    public bool IsConfigLocked(int configIndex)
    Parameters
    Type Name Description
    int configIndex
    Returns
    Type Description
    bool

    IsTargetInRange(Entity)

    Declaration
    public bool IsTargetInRange(Entity target)
    Parameters
    Type Name Description
    Entity target
    Returns
    Type Description
    bool

    LockCooldown(int)

    Declaration
    public void LockCooldown(int configIndex)
    Parameters
    Type Name Description
    int configIndex

    LogicUpdate(float)

    Declaration
    public override void LogicUpdate(float dt)
    Parameters
    Type Name Description
    float dt
    Overrides
    Actor.LogicUpdate(float)

    OnCastCancel(int, CastInfo)

    Called on server when this ability's cast channel is canceled.

    By default, this sets the cooldown time to 1 second if its smaller than 1 second.

    Declaration
    protected virtual void OnCastCancel(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnCastCancelSetCooldownTime(int, CastInfo)

    Declaration
    protected virtual void OnCastCancelSetCooldownTime(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnCastComplete(int, CastInfo)

    Called on server when this ability's cast channel is completed.

    By default, this spends mana and ability charge, sets the appropriate cooldown time, delay, and creates the configured ability instance using the owner's position and rotation.

    If the config is direction-type, the rotation will be based off of the cast direction.

    Declaration
    public virtual AbilityInstance OnCastComplete(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info
    Returns
    Type Description
    AbilityInstance

    OnCastCompleteBeforePrepare(EventInfoCast)

    Declaration
    public virtual void OnCastCompleteBeforePrepare(EventInfoCast cast)
    Parameters
    Type Name Description
    EventInfoCast cast

    OnCastCompleteSetCharge(int, CastInfo)

    Declaration
    public virtual void OnCastCompleteSetCharge(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnCastCompleteSetCooldownTime(int, CastInfo)

    Declaration
    public virtual void OnCastCompleteSetCooldownTime(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnCastCompleteSetMinimumDelay(int, CastInfo)

    Declaration
    public virtual void OnCastCompleteSetMinimumDelay(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnCastCompleteSpendMana(int, CastInfo)

    Declaration
    public virtual void OnCastCompleteSpendMana(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnCastStart(int, CastInfo)

    Called on server when this ability is cast.

    By default, this plays the animation and starts the configured channel.

    If faceForward is set to true, it will cause the owner to rotate towards the target/point/direction/cursor position.

    Target validation will be done on the channel if the cast method is set to Target.

    Declaration
    public virtual void OnCastStart(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnConfigChanged(int, int)

    Called everywhere when current config index is changed or set initial value.

    Declaration
    protected virtual void OnConfigChanged(int oldIndex, int newIndex)
    Parameters
    Type Name Description
    int oldIndex
    int newIndex

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    Actor.OnCreate()

    OnDeserialize(NetworkReader, bool)

    Declaration
    public override void OnDeserialize(NetworkReader reader, bool initialState)
    Parameters
    Type Name Description
    Mirror.NetworkReader reader
    bool initialState
    Overrides
    Mirror.NetworkBehaviour.OnDeserialize(Mirror.NetworkReader, bool)

    OnEquip(Entity)

    Called on everyone when the trigger is being equipped.

    Declaration
    protected virtual void OnEquip(Entity newOwner)
    Parameters
    Type Name Description
    Entity newOwner

    OnRotateForward(int, CastInfo)

    Declaration
    protected virtual void OnRotateForward(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnSerialize(NetworkWriter, bool)

    Declaration
    public override void OnSerialize(NetworkWriter writer, bool initialState)
    Parameters
    Type Name Description
    Mirror.NetworkWriter writer
    bool initialState
    Overrides
    Mirror.NetworkBehaviour.OnSerialize(Mirror.NetworkWriter, bool)

    OnStartChannel(int, CastInfo)

    Declaration
    protected virtual void OnStartChannel(int configIndex, CastInfo info)
    Parameters
    Type Name Description
    int configIndex
    CastInfo info

    OnStartServer()

    Declaration
    public override void OnStartServer()
    Overrides
    Actor.OnStartServer()

    OnStopServer()

    Declaration
    public override void OnStopServer()
    Overrides
    Actor.OnStopServer()

    OnUnequip(Entity)

    Called on everyone when the trigger is being unequipped.

    Declaration
    protected virtual void OnUnequip(Entity formerOwner)
    Parameters
    Type Name Description
    Entity formerOwner

    PredictAngle_Simple(float, Entity, Vector3, float)

    Declaration
    public static float PredictAngle_Simple(float strength, Entity target, Vector3 startPos, float delay)
    Parameters
    Type Name Description
    float strength
    Entity target
    UnityEngine.Vector3 startPos
    float delay
    Returns
    Type Description
    float

    PredictAngle_SpeedAcceleration(float, Entity, Vector3, float, float, float, float, float)

    Declaration
    public static float PredictAngle_SpeedAcceleration(float strength, Entity target, Vector3 startPos, float delay, float frontDistance, float initSpeed, float targetSpeed, float acceleration)
    Parameters
    Type Name Description
    float strength
    Entity target
    UnityEngine.Vector3 startPos
    float delay
    float frontDistance
    float initSpeed
    float targetSpeed
    float acceleration
    Returns
    Type Description
    float

    PredictPoint_Simple(float, Entity, float)

    Declaration
    public static Vector3 PredictPoint_Simple(float strength, Entity target, float delay)
    Parameters
    Type Name Description
    float strength
    Entity target
    float delay
    Returns
    Type Description
    UnityEngine.Vector3

    PredictPoint_SpeedAcceleration(float, Entity, Vector3, float, float, float, float, float)

    Declaration
    public static Vector3 PredictPoint_SpeedAcceleration(float strength, Entity target, Vector3 startPos, float delay, float frontDistance, float initSpeed, float targetSpeed, float acceleration)
    Parameters
    Type Name Description
    float strength
    Entity target
    UnityEngine.Vector3 startPos
    float delay
    float frontDistance
    float initSpeed
    float targetSpeed
    float acceleration
    Returns
    Type Description
    UnityEngine.Vector3

    PredictPointClamped_Simple(float, Entity, Vector3, float, float)

    Declaration
    public static Vector3 PredictPointClamped_Simple(float strength, Entity target, Vector3 startPos, float range, float delay)
    Parameters
    Type Name Description
    float strength
    Entity target
    UnityEngine.Vector3 startPos
    float range
    float delay
    Returns
    Type Description
    UnityEngine.Vector3

    PredictPointClamped_SpeedAcceleration(float, Entity, Vector3, float, float, float, float, float, float)

    Declaration
    public static Vector3 PredictPointClamped_SpeedAcceleration(float strength, Entity target, Vector3 startPos, float range, float delay, float frontDistance, float initSpeed, float targetSpeed, float acceleration)
    Parameters
    Type Name Description
    float strength
    Entity target
    UnityEngine.Vector3 startPos
    float range
    float delay
    float frontDistance
    float initSpeed
    float targetSpeed
    float acceleration
    Returns
    Type Description
    UnityEngine.Vector3

    PredictTime_SpeedAcceleration(Entity, Vector3, float, float, float, float, float)

    Declaration
    public static float PredictTime_SpeedAcceleration(Entity target, Vector3 startPos, float delay, float frontDistance, float initSpeed, float targetSpeed, float acceleration)
    Parameters
    Type Name Description
    Entity target
    UnityEngine.Vector3 startPos
    float delay
    float frontDistance
    float initSpeed
    float targetSpeed
    float acceleration
    Returns
    Type Description
    float

    ProcessRange(float)

    Declaration
    public virtual float ProcessRange(float original)
    Parameters
    Type Name Description
    float original
    Returns
    Type Description
    float

    ProcessReceivedCooldownReduction(ref CooldownReductionSettings, Actor)

    Declaration
    public void ProcessReceivedCooldownReduction(ref CooldownReductionSettings data, Actor actor)
    Parameters
    Type Name Description
    CooldownReductionSettings data
    Actor actor

    ProcessReceivedCooldownReductionByRatio(ref CooldownReductionByRatioSettings, Actor)

    Declaration
    public void ProcessReceivedCooldownReductionByRatio(ref CooldownReductionByRatioSettings data, Actor actor)
    Parameters
    Type Name Description
    CooldownReductionByRatioSettings data
    Actor actor

    SetCharge(int, int)

    Declaration
    public void SetCharge(int configIndex, int charge)
    Parameters
    Type Name Description
    int configIndex
    int charge

    SetChargeAll(int)

    Declaration
    public void SetChargeAll(int charge)
    Parameters
    Type Name Description
    int charge

    SetCooldownTime(int, float, bool)

    Declaration
    public void SetCooldownTime(int configIndex, float time, bool scaled = true)
    Parameters
    Type Name Description
    int configIndex
    float time
    bool scaled

    SetCooldownTimeAll(float, bool)

    Declaration
    public void SetCooldownTimeAll(float time, bool scaled = true)
    Parameters
    Type Name Description
    float time
    bool scaled

    SetMinimumDelay(int, float)

    Declaration
    public void SetMinimumDelay(int configIndex, float delay)
    Parameters
    Type Name Description
    int configIndex
    float delay

    SetMinimumDelayAll(float)

    Declaration
    public void SetMinimumDelayAll(float delay)
    Parameters
    Type Name Description
    float delay

    ShouldTickCooldown(int)

    If false, this trigger will not tick cooldowns by itself nor replenish charges. Delays will tick as usual. This should return same values in server and clients for consistent behavior.

    Declaration
    protected virtual bool ShouldTickCooldown(int configIndex)
    Parameters
    Type Name Description
    int configIndex
    Returns
    Type Description
    bool

    SyncCastMethodChanges(int)

    Declaration
    public void SyncCastMethodChanges(int configIndex)
    Parameters
    Type Name Description
    int configIndex

    UndoChangeConfig()

    Declaration
    public void UndoChangeConfig()

    UnlockCooldown(int)

    Declaration
    public void UnlockCooldown(int configIndex)
    Parameters
    Type Name Description
    int configIndex

    Implements

    ILogicUpdate
    ICleanup
    ICustomDestroyRoutine

    Extension Methods

    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)
    ActorCheck.IsNullOrInactive(Actor)
    In This Article
    Back to top Shape of Dreams API Documentation