Class HeroProfileDef
Hero progression, movement, and resurrection settings.
public sealed class HeroProfileDef
- Inheritance
-
HeroProfileDef
- Inherited Members
Constructors
HeroProfileDef(HeroLevelDef[], HeroSkillDef[], HeroSkillMode, float, float, Vec2?, float, float, float[], PointRuleDef)
Creates a hero profile; all growth values are newly authored data.
public HeroProfileDef(HeroLevelDef[] levels, HeroSkillDef[] skills = null, HeroSkillMode skillMode = HeroSkillMode.AutoUnlock, float respawnDelay = 0, float returnDuration = 0, Vec2? respawnPosition = null, float engageRadius = 0, float difficultyExperienceScale = 1, float[] levelExperienceScales = null, PointRuleDef movePointRule = null)
Parameters
levelsHeroLevelDef[]skillsHeroSkillDef[]skillModeHeroSkillModerespawnDelayfloatreturnDurationfloatrespawnPositionVec2?engageRadiusfloatdifficultyExperienceScalefloatlevelExperienceScalesfloat[]movePointRulePointRuleDef
Properties
DifficultyExperienceScale
Experience multiplier representing difficulty.
public float DifficultyExperienceScale { get; }
Property Value
EngageRadius
Idle engagement radius for a hero without a soldier definition.
public float EngageRadius { get; }
Property Value
LevelExperienceScales
Experience multiplier indexed by current level, for expected-level scaling.
public IReadOnlyList<float> LevelExperienceScales { get; }
Property Value
Levels
Absolute growth rows, indexed by hero level minus one.
public IReadOnlyList<HeroLevelDef> Levels { get; }
Property Value
MovePointRule
Shared movement point validation.
public PointRuleDef MovePointRule { get; }
Property Value
RespawnDelay
Seconds between death and the start of returning.
public float RespawnDelay { get; }
Property Value
RespawnPosition
Optional resurrection position; null preserves the death position.
public Vec2? RespawnPosition { get; }
Property Value
- Vec2?
ReturnDuration
Seconds of invulnerable return presentation.
public float ReturnDuration { get; }
Property Value
SkillMode
Skill growth policy.
public HeroSkillMode SkillMode { get; }
Property Value
Skills
Purchasable or automatically unlocked skills.
public IReadOnlyList<HeroSkillDef> Skills { get; }