Class StarEffect
Represents any kind of constellation stars, that can be equipped and be applied to travelers with specific level and strength.
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
StarEffect
Assembly: Dew.Core.dll
Syntax
[SaveActor(true)]
public class StarEffect : StatusEffect, ILogicUpdate, ICleanup, ICustomDestroyRoutine
Fields
maxStarLevel
Declaration
[BoxGroup("Star Settings", true, false, 0)]
public int maxStarLevel
Field Value
price
Declaration
[BoxGroup("Star Settings", true, false, 0)]
public int[] price
Field Value
requiredLevel
Declaration
[BoxGroup("Star Settings", true, false, 0)]
[LabelText("Req. Mastery Level")]
public int requiredLevel
Field Value
starIcon
Declaration
[BoxGroup("Star Settings", true, false, 0)]
public Sprite starIcon
Field Value
| Type |
Description |
| UnityEngine.Sprite |
|
type
Declaration
[BoxGroup("Star Settings", true, false, 0)]
public StarType type
Field Value
Properties
hero
Declaration
public Hero hero { get; }
Property Value
heroType
Declaration
public virtual Type heroType { get; }
Property Value
| Type |
Description |
| System.Type |
|
isMovementSkillType
Declaration
public virtual bool isMovementSkillType { get; }
Property Value
player
Declaration
public DewPlayer player { get; }
Property Value
skill
Declaration
public SkillTrigger skill { get; }
Property Value
skills
Declaration
public SkillTrigger[] skills { get; }
Property Value
skillType
Declaration
public virtual Type skillType { get; }
Property Value
| Type |
Description |
| System.Type |
|
strength
Strength of this star effect. Usually 1.0f, but can be lower if non-flexible star is slotted in different category slot.
Declaration
[SaveVar(SaveVarFlags.Default)]
public float strength { get; set; }
Property Value
Methods
DoSkill(Action<SkillTrigger>)
Do custom action on all matching skill. You can invoke the returned action to immediately call cleanup functions to stop the effect.
Declaration
public SafeAction DoSkill(Action<SkillTrigger> callback)
Parameters
| Type |
Name |
Description |
| System.Action<T><SkillTrigger> |
callback |
|
Returns
DoSkill(Func<SkillTrigger, Action>)
Do custom action on all matching skill and do custom cleanup. You can invoke the returned action to immediately call cleanup functions to stop the effect.
Declaration
public SafeAction DoSkill(Func<SkillTrigger, Action> callback)
Parameters
| Type |
Name |
Description |
| System.Func<T, TResult><SkillTrigger, System.Action> |
callback |
|
Returns
DoSkillBonusAll(SkillBonus)
Note the given bonus will be cloned. You can invoke the returned action to immediately call cleanup functions to stop the effect.
Declaration
public SafeAction DoSkillBonusAll(SkillBonus bonus)
Parameters
Returns
IsIncompatibleWith(Hero, HeroLoadoutData)
Declaration
public bool IsIncompatibleWith(Hero h, HeroLoadoutData l)
Parameters
Returns
Declaration
public bool IsSkillRelated(SkillTrigger s)
Parameters
Returns
Declaration
public bool IsSkillRelated(string s)
Parameters
| Type |
Name |
Description |
| string |
s |
|
Returns
Implements
Extension Methods