Class Summon
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
Summon
Assembly: Dew.Core.dll
Syntax
public class Summon : Entity, ILogicUpdate, ICleanup, ICustomDestroyRoutine
Fields
armor
Declaration
[BoxGroup("Summon Settings", true, false, 0)]
public ScalingValue armor
Field Value
maxDuration
Declaration
[BoxGroup("Summon Settings", true, false, 0)]
public float maxDuration
Field Value
tvDefaultAllExceptSelf
Declaration
protected AbilityTargetValidatorWrapper tvDefaultAllExceptSelf
Field Value
tvDefaultHarmfulEffectTargets
Declaration
protected AbilityTargetValidatorWrapper tvDefaultHarmfulEffectTargets
Field Value
tvDefaultUsefulEffectTargets
Declaration
protected AbilityTargetValidatorWrapper tvDefaultUsefulEffectTargets
Field Value
Properties
effectiveLevel
Declaration
public int effectiveLevel { get; }
Property Value
hero
Declaration
public Hero hero { get; }
Property Value
info
Declaration
public CastInfo info { get; set; }
Property Value
isDestroyedOnRoomChange
Declaration
public override bool isDestroyedOnRoomChange { get; }
Property Value
Overrides
normalizedRemainingDuration
Declaration
public float normalizedRemainingDuration { get; }
Property Value
skillLevel
Level of its origin skill trigger at the time this instance was cast. Defaults to -1 or that of parent's level.
Parent type can either be SkillTrigger, AbilityInstance, or Gem.
You can override level by setting this field when the instance is preparing.
Declaration
public int skillLevel { get; set; }
Property Value
statEntity
Declaration
public Entity statEntity { get; }
Property Value
summonHealth
Declaration
public float summonHealth { get; }
Property Value
Methods
ActiveLogicUpdate(float)
Declaration
protected override void ActiveLogicUpdate(float dt)
Parameters
| Type |
Name |
Description |
| float |
dt |
|
Overrides
AddDuration(float, bool)
Declaration
public void AddDuration(float duration, bool clampToMaxDuration = true)
Parameters
| Type |
Name |
Description |
| float |
duration |
|
| bool |
clampToMaxDuration |
|
AIUpdate(ref EntityAIContext)
Declaration
protected override void AIUpdate(ref EntityAIContext context)
Parameters
Overrides
CanAggroTo(Entity)
Declaration
public override bool CanAggroTo(Entity target)
Parameters
| Type |
Name |
Description |
| Entity |
target |
|
Returns
Overrides
CreateDamage(SourceType, ScalingValue, float)
Declaration
public DamageData CreateDamage(DamageData.SourceType type, ScalingValue value, float procCoefficient = 1)
Parameters
Returns
Damage(ScalingValue, float)
Declaration
public DamageData Damage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
DefaultDamage(ScalingValue, float)
Declaration
public DamageData DefaultDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
GetStaggerSettings()
Declaration
protected override Entity.StaggerSettings GetStaggerSettings()
Returns
Overrides
GetValue(ScalingValue)
Declaration
public float GetValue(ScalingValue val)
Parameters
Returns
Heal(ScalingValue)
Declaration
public HealData Heal(ScalingValue amount)
Parameters
Returns
MagicDamage(ScalingValue, float)
Declaration
public DamageData MagicDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroyActor()
Declaration
protected override void OnDestroyActor()
Overrides
OnPrepare()
Called on server right before this instance to be spawned.
Configure this instance's initial state here.
By default this sets skillLevel to parent's level.
Parent type can either be SkillTrigger, AbilityInstance, or Gem.
Declaration
protected override void OnPrepare()
Overrides
OnStart()
Declaration
public override void OnStart()
Overrides
PhysicalDamage(ScalingValue, float)
Declaration
public DamageData PhysicalDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
PhysicalMagicDamage(ScalingValue, float)
Declaration
public DamageData PhysicalMagicDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
PureDamage(ScalingValue, float)
Declaration
public DamageData PureDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
ReduceDuration(float, bool)
Declaration
public void ReduceDuration(float duration, bool clampToMaxDuration = true)
Parameters
| Type |
Name |
Description |
| float |
duration |
|
| bool |
clampToMaxDuration |
|
SummonCommand_AttackTarget(Entity)
Declaration
public void SummonCommand_AttackTarget(Entity target)
Parameters
| Type |
Name |
Description |
| Entity |
target |
|
SummonCommand_MoveToDestination(Vector3)
Declaration
public void SummonCommand_MoveToDestination(Vector3 destination)
Parameters
| Type |
Name |
Description |
| UnityEngine.Vector3 |
destination |
|
Implements
Extension Methods