Search Results for

    Show / Hide Table of Contents

    Class EntityAbility

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    Mirror.NetworkBehaviour
    DewNetworkBehaviour
    EntityComponent
    EntityAbility
    Implements
    ILogicUpdate
    ICleanup
    Inherited Members
    EntityComponent.entity
    EntityComponent.OnDisable()
    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.OnStopServer()
    DewNetworkBehaviour.OnStopClient()
    DewNetworkBehaviour.OnStart()
    DewNetworkBehaviour.OnLateStart()
    DewNetworkBehaviour.OnLateStartServer()
    DewNetworkBehaviour.OnStop()
    DewNetworkBehaviour.OnDestroy()
    DewNetworkBehaviour.FrameUpdate()
    DewNetworkBehaviour.GetComponent<T>(out T)
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    [HideMonoScript]
    public class EntityAbility : EntityComponent, ILogicUpdate, ICleanup

    Fields

    abilityPreset

    Declaration
    public AssetRef<AbilityTrigger>[] abilityPreset
    Field Value
    Type Description
    AssetRef<AbilityTrigger>[]

    AttackAbilityIndex

    Declaration
    public const int AttackAbilityIndex = 63
    Field Value
    Type Description
    int

    attackAbilityPreset

    Declaration
    public AssetRef<AttackTrigger> attackAbilityPreset
    Field Value
    Type Description
    AssetRef<AttackTrigger>

    ClientEvent_OnAbilityAdded

    Declaration
    public SafeAction<int, AbilityTrigger> ClientEvent_OnAbilityAdded
    Field Value
    Type Description
    SafeAction<int, AbilityTrigger>

    ClientEvent_OnAbilityRemoved

    Declaration
    public SafeAction<int, AbilityTrigger> ClientEvent_OnAbilityRemoved
    Field Value
    Type Description
    SafeAction<int, AbilityTrigger>

    Properties

    abilities

    Declaration
    public IReadOnlyDictionary<int, AbilityTrigger> abilities { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><int, AbilityTrigger>

    attackAbility

    Declaration
    public AbilityTrigger attackAbility { get; }
    Property Value
    Type Description
    AbilityTrigger

    originalAttackAbility

    Declaration
    public AttackTrigger originalAttackAbility { get; }
    Property Value
    Type Description
    AttackTrigger

    overridenAttackAbility

    Declaration
    public AbilityTrigger overridenAttackAbility { get; }
    Property Value
    Type Description
    AbilityTrigger

    Methods

    AddAbility(AbilityTrigger)

    Add an ability to this entity. It will be equipped on empty index between 0 and 127.

    Declaration
    public void AddAbility(AbilityTrigger trigger)
    Parameters
    Type Name Description
    AbilityTrigger trigger

    AddAbility<T>()

    Add an ability to this entity. It will be equipped on empty index between 0 and 127.

    Declaration
    public T AddAbility<T>() where T : AbilityTrigger
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Awake()

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

    GetAbility<T>()

    Get this entity's first ability of the given type. Can be null.

    Declaration
    public T GetAbility<T>() where T : AbilityTrigger
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetNewAbilityLockHandle(bool)

    Declaration
    public AbilityLockHandle GetNewAbilityLockHandle(bool shouldShowLockIcon = false)
    Parameters
    Type Name Description
    bool shouldShowLockIcon
    Returns
    Type Description
    AbilityLockHandle

    IsAbilityCastLocked(int)

    Is an ability locked by AbilityLockHandle? Available everywhere.

    Declaration
    public bool IsAbilityCastLocked(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    bool

    IsAbilityEditLocked(int)

    Declaration
    public bool IsAbilityEditLocked(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    bool

    IsAttackAbilityLocked(int)

    Declaration
    public bool IsAttackAbilityLocked(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    bool

    LogicUpdate(float)

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

    OnStartClient()

    Declaration
    public override void OnStartClient()
    Overrides
    DewNetworkBehaviour.OnStartClient()

    OnStartServer()

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

    RemoveAbility(int)

    Declaration
    public AbilityTrigger RemoveAbility(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    AbilityTrigger

    RemoveAttackAbility()

    Remove previous attack ability from this entity.

    Declaration
    public AbilityTrigger RemoveAttackAbility()
    Returns
    Type Description
    AbilityTrigger

    SetAbility(int, AbilityTrigger)

    Give this entity a new ability at the given index. Previously equipped ability will be unequipped.

    Declaration
    public void SetAbility(int index, AbilityTrigger trigger)
    Parameters
    Type Name Description
    int index
    AbilityTrigger trigger

    SetAttackAbility(AttackTrigger)

    Give a new attack ability to this entity. Previous one will be unequipped.

    Declaration
    public void SetAttackAbility(AttackTrigger trigger)
    Parameters
    Type Name Description
    AttackTrigger trigger

    ShouldShowAbilityLockIcon(int)

    Declaration
    public bool ShouldShowAbilityLockIcon(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    bool

    TryGetAbility<T>(out T)

    Declaration
    public bool TryGetAbility<T>(out T trigger) where T : AbilityTrigger
    Parameters
    Type Name Description
    T trigger
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    Explicit Interface Implementations

    ICleanup.canDestroy

    Declaration
    bool ICleanup.canDestroy { get; }
    Returns
    Type Description
    bool

    ICleanup.OnCleanup()

    Declaration
    void ICleanup.OnCleanup()

    Implements

    ILogicUpdate
    ICleanup

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