Search Results for

    Show / Hide Table of Contents

    Class EntityStatus

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    Mirror.NetworkBehaviour
    DewNetworkBehaviour
    EntityComponent
    EntityStatus
    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.Awake()
    DewNetworkBehaviour.InvalidateInstance()
    DewNetworkBehaviour.OnStartServer()
    DewNetworkBehaviour.OnStartClient()
    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 EntityStatus : EntityComponent, ILogicUpdate, ICleanup

    Fields

    baseStats

    Declaration
    [BoxGroup("Stat Settings", true, false, 0)]
    public BaseStats baseStats
    Field Value
    Type Description
    BaseStats

    bonusStats

    Declaration
    [BoxGroup("Stat Settings", true, false, 0)]
    [NonSerialized]
    [ShowInInspector]
    [ReadOnly]
    [HideIn(PrefabKind.PrefabInstance|PrefabKind.PrefabAsset)]
    public BonusStats bonusStats
    Field Value
    Type Description
    BonusStats

    ClientEvent_OnOnFinalStatsUpdated

    Declaration
    public SafeAction ClientEvent_OnOnFinalStatsUpdated
    Field Value
    Type Description
    SafeAction

    finalStats

    Base stats + scaling stats + bonus stats + basic effect stats

    Declaration
    public FinalStats finalStats
    Field Value
    Type Description
    FinalStats

    finalStatsProcessors

    Declaration
    public DataProcessorGroup<FinalStats> finalStatsProcessors
    Field Value
    Type Description
    DataProcessorGroup<FinalStats>

    manaTypeKey

    Declaration
    public string manaTypeKey
    Field Value
    Type Description
    string

    MaximumArmorValue

    Declaration
    public const float MaximumArmorValue = 100000
    Field Value
    Type Description
    float

    MinimumArmorValue

    Declaration
    public const float MinimumArmorValue = -300
    Field Value
    Type Description
    float

    scalingStats

    Declaration
    [BoxGroup("Stat Settings", true, false, 0)]
    public BonusStats scalingStats
    Field Value
    Type Description
    BonusStats

    statusEffects

    List of status effects this entity has.

    Declaration
    public readonly List<StatusEffect> statusEffects
    Field Value
    Type Description
    System.Collections.Generic.List<T><StatusEffect>

    Properties

    abilityHaste

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

    abilityPower

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

    armor

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

    attackDamage

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

    attackSpeedMultiplier

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

    basicEffectMask

    Declaration
    public BasicEffectMask basicEffectMask { get; }
    Property Value
    Type Description
    BasicEffectMask

    coldEffectAmp

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

    critAmp

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

    critChance

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

    currentHealth

    Declaration
    [SaveVar(SaveVarFlags.ApplyAfterFrameDelay)]
    public float currentHealth { get; }
    Property Value
    Type Description
    float

    currentMana

    Declaration
    [SaveVar(SaveVarFlags.ApplyAfterFrameDelay)]
    public float currentMana { get; }
    Property Value
    Type Description
    float

    currentShield

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

    darkEffectAmp

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

    darkStack

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

    fireEffectAmp

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

    fireStack

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

    hasArmorBoost

    Declaration
    public bool hasArmorBoost { get; }
    Property Value
    Type Description
    bool

    hasArmorReduction

    Declaration
    public bool hasArmorReduction { get; }
    Property Value
    Type Description
    bool

    hasAttackCritical

    Declaration
    public bool hasAttackCritical { get; }
    Property Value
    Type Description
    bool

    hasAttackOverride

    Declaration
    public bool hasAttackOverride { get; }
    Property Value
    Type Description
    bool

    hasBlind

    Declaration
    public bool hasBlind { get; }
    Property Value
    Type Description
    bool

    hasCold

    Declaration
    public bool hasCold { get; }
    Property Value
    Type Description
    bool

    hasCripple

    Declaration
    public bool hasCripple { get; }
    Property Value
    Type Description
    bool

    hasCrowdControlImmunity

    Declaration
    public bool hasCrowdControlImmunity { get; }
    Property Value
    Type Description
    bool

    hasDamageImmunity

    Declaration
    public bool hasDamageImmunity { get; }
    Property Value
    Type Description
    bool

    hasDeathInterrupt

    Declaration
    public bool hasDeathInterrupt { get; }
    Property Value
    Type Description
    bool

    hasHaste

    Declaration
    public bool hasHaste { get; }
    Property Value
    Type Description
    bool

    hasImmobility

    Declaration
    public bool hasImmobility { get; }
    Property Value
    Type Description
    bool

    hasInvisible

    Declaration
    public bool hasInvisible { get; }
    Property Value
    Type Description
    bool

    hasInvulnerable

    Declaration
    public bool hasInvulnerable { get; }
    Property Value
    Type Description
    bool

    hasMirageSkin

    Declaration
    public bool hasMirageSkin { get; }
    Property Value
    Type Description
    bool

    hasProtected

    Declaration
    public bool hasProtected { get; }
    Property Value
    Type Description
    bool

    hasRoot

    Declaration
    public bool hasRoot { get; }
    Property Value
    Type Description
    bool

    hasSilence

    Declaration
    public bool hasSilence { get; }
    Property Value
    Type Description
    bool

    hasSlow

    Declaration
    public bool hasSlow { get; }
    Property Value
    Type Description
    bool

    hasSpeed

    Declaration
    public bool hasSpeed { get; }
    Property Value
    Type Description
    bool

    hasStun

    Declaration
    public bool hasStun { get; }
    Property Value
    Type Description
    bool

    hasUncollidable

    Declaration
    public bool hasUncollidable { get; }
    Property Value
    Type Description
    bool

    hasUnstoppable

    Declaration
    public bool hasUnstoppable { get; }
    Property Value
    Type Description
    bool

    healthRegen

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

    isAlive

    Declaration
    public bool isAlive { get; }
    Property Value
    Type Description
    bool

    isDead

    Declaration
    public bool isDead { get; }
    Property Value
    Type Description
    bool

    isHealthHidden

    Declaration
    public bool isHealthHidden { get; }
    Property Value
    Type Description
    bool

    isInConversation

    Declaration
    public bool isInConversation { get; }
    Property Value
    Type Description
    bool

    isSectionTriggeringDisabled

    Declaration
    public CounterBool isSectionTriggeringDisabled { get; }
    Property Value
    Type Description
    CounterBool

    level

    Declaration
    [SaveVar(SaveVarFlags.Default)]
    public int level { get; set; }
    Property Value
    Type Description
    int

    lightEffectAmp

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

    lightStack

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

    manaRegen

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

    maxHealth

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

    maxMana

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

    mirageSkinInitAmount

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

    missingHealth

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

    missingMana

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

    movementSpeedMultiplier

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

    normalizedHealth

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

    normalizedMana

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

    overridenAttack

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

    specialFill

    Declaration
    public Vector2 specialFill { get; set; }
    Property Value
    Type Description
    UnityEngine.Vector2

    tenacity

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

    totalArmorFromStatusEffects

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

    totalCripple

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

    totalFakeMaxHealth

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

    totalHaste

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

    totalSlow

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

    totalSpeed

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

    Methods

    AddStatBonus(StatBonus)

    Add the given bonus stats to this entity.

    Declaration
    public StatBonus AddStatBonus(StatBonus bonus)
    Parameters
    Type Name Description
    StatBonus bonus
    Returns
    Type Description
    StatBonus

    CalculateTotalBonusStat(float, float, float)

    Declaration
    public float CalculateTotalBonusStat(float current, float bonusFlat, float bonusPercentage)
    Parameters
    Type Name Description
    float current
    float bonusFlat
    float bonusPercentage
    Returns
    Type Description
    float

    DisableSectionTriggering()

    This entity will not trigger section colliders. Note EnableSectionTriggering() must be done after calling this function.

    Declaration
    public void DisableSectionTriggering()

    EnableSectionTriggering()

    This entity will trigger section colliders. Note this has to be done AFTER calling DisableSectionTriggering().

    Declaration
    public void EnableSectionTriggering()

    FindStatusEffect(Type, Func<StatusEffect, bool>)

    Find a status effect of given type with predicate.

    Declaration
    public StatusEffect FindStatusEffect(Type type, Func<StatusEffect, bool> predicate)
    Parameters
    Type Name Description
    System.Type type
    System.Func<T, TResult><StatusEffect, bool> predicate
    Returns
    Type Description
    StatusEffect

    FindStatusEffect<T>(Func<T, bool>)

    Find a status effect of given type with predicate.

    Declaration
    public T FindStatusEffect<T>(Func<T, bool> predicate) where T : StatusEffect
    Parameters
    Type Name Description
    System.Func<T, TResult><T, bool> predicate
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetBonusAbilityPower()

    Declaration
    public float GetBonusAbilityPower()
    Returns
    Type Description
    float

    GetBonusArmor()

    Declaration
    public float GetBonusArmor()
    Returns
    Type Description
    float

    GetBonusAttackDamage()

    Declaration
    public float GetBonusAttackDamage()
    Returns
    Type Description
    float

    GetBonusHealth()

    Declaration
    public float GetBonusHealth()
    Returns
    Type Description
    float

    GetElementalAmp(ElementalType)

    Declaration
    public float GetElementalAmp(ElementalType type)
    Parameters
    Type Name Description
    ElementalType type
    Returns
    Type Description
    float

    GetElementalStack(ElementalType)

    Declaration
    public int GetElementalStack(ElementalType type)
    Parameters
    Type Name Description
    ElementalType type
    Returns
    Type Description
    int

    GetStatusEffect(Type)

    Get a status effect of given type.

    Declaration
    public StatusEffect GetStatusEffect(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    StatusEffect

    GetStatusEffect<T>()

    Get a status effect of given type.

    Declaration
    public T GetStatusEffect<T>() where T : StatusEffect
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetStatusEffects(Type)

    Enumerate all status effects of given type.

    Declaration
    public IEnumerable<StatusEffect> GetStatusEffects(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<T><StatusEffect>

    GetStatusEffects<T>()

    Enumerate all status effects of given type.

    Declaration
    public IEnumerable<T> GetStatusEffects<T>() where T : StatusEffect
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<T><T>
    Type Parameters
    Name Description
    T

    HasElemental(ElementalType)

    Declaration
    public bool HasElemental(ElementalType type)
    Parameters
    Type Name Description
    ElementalType type
    Returns
    Type Description
    bool

    HasStatusEffect(Type)

    Does this entity has a status effect of a certain type?

    Declaration
    public bool HasStatusEffect(Type statusEffectType)
    Parameters
    Type Name Description
    System.Type statusEffectType
    Returns
    Type Description
    bool

    HasStatusEffect<T>()

    Does this entity has a status effect of a certain type?

    Declaration
    public bool HasStatusEffect<T>() where T : StatusEffect
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    HideHealth()

    Declaration
    public void HideHealth()

    LogicUpdate(float)

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

    RemoveStatBonus(StatBonus)

    Remove the given bonus stats from this entity. Throws if the provided bonus did not exist on this entity.

    Declaration
    public void RemoveStatBonus(StatBonus bonus)
    Parameters
    Type Name Description
    StatBonus bonus

    SetHealth(float)

    Declaration
    public void SetHealth(float amount)
    Parameters
    Type Name Description
    float amount

    SetMana(float)

    Declaration
    public void SetMana(float amount)
    Parameters
    Type Name Description
    float amount

    ShowHealth()

    Declaration
    public void ShowHealth()

    TryGetStatusEffect(Type, out StatusEffect)

    Try to get an existing status effect instance on this entity.

    Declaration
    public bool TryGetStatusEffect(Type type, out StatusEffect effect)
    Parameters
    Type Name Description
    System.Type type
    StatusEffect effect
    Returns
    Type Description
    bool

    TryGetStatusEffect<T>(out T)

    Try to get an existing status effect instance on this entity.

    Declaration
    public bool TryGetStatusEffect<T>(out T effect) where T : StatusEffect
    Parameters
    Type Name Description
    T effect
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    UpdateStats()

    Recalculate entity stats + stat processors + basic effects + bonus stats immediately.

    Declaration
    public void UpdateStats()

    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