Class HeroProfileDef

Namespace
TDMaker.Core.Defs
Assembly
TDMaker.Core.dll

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

levels HeroLevelDef[]
skills HeroSkillDef[]
skillMode HeroSkillMode
respawnDelay float
returnDuration float
respawnPosition Vec2?
engageRadius float
difficultyExperienceScale float
levelExperienceScales float[]
movePointRule PointRuleDef

Properties

DifficultyExperienceScale

Experience multiplier representing difficulty.

public float DifficultyExperienceScale { get; }

Property Value

float

EngageRadius

Idle engagement radius for a hero without a soldier definition.

public float EngageRadius { get; }

Property Value

float

LevelExperienceScales

Experience multiplier indexed by current level, for expected-level scaling.

public IReadOnlyList<float> LevelExperienceScales { get; }

Property Value

IReadOnlyList<float>

Levels

Absolute growth rows, indexed by hero level minus one.

public IReadOnlyList<HeroLevelDef> Levels { get; }

Property Value

IReadOnlyList<HeroLevelDef>

MovePointRule

Shared movement point validation.

public PointRuleDef MovePointRule { get; }

Property Value

PointRuleDef

RespawnDelay

Seconds between death and the start of returning.

public float RespawnDelay { get; }

Property Value

float

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

float

SkillMode

Skill growth policy.

public HeroSkillMode SkillMode { get; }

Property Value

HeroSkillMode

Skills

Purchasable or automatically unlocked skills.

public IReadOnlyList<HeroSkillDef> Skills { get; }

Property Value

IReadOnlyList<HeroSkillDef>