Class LevelRulesData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
Level-wide economy and flow rules, baked into LevelRulesDef.
public sealed class LevelRulesData
- Inheritance
-
LevelRulesData
- Inherited Members
Constructors
LevelRulesData()
public LevelRulesData()
Fields
earlyCallCutThreshold
The remaining time must exceed this many seconds for the spell cut to apply.
[Min(0)]
public float earlyCallCutThreshold
Field Value
earlyCallRewardRate
Gold per rounded remaining second when calling a wave early.
[Min(0)]
public float earlyCallRewardRate
Field Value
earlyCallSpellCooldownCut
Calling a wave early also shortens cooling spells by the remaining time.
public bool earlyCallSpellCooldownCut
Field Value
leakBountyShare
Share of an enemy's bounty still paid when it leaks.
[Range(0, 1)]
public float leakBountyShare
Field Value
overrideEarlyCallRate
Uses earlyCallRewardRate instead of each wave's own early gold rate.
public bool overrideEarlyCallRate
Field Value
refundShare
Share of total investment refunded when selling after the first wave has started.
[Range(0, 1)]
public float refundShare
Field Value
victoryRating
Victory star bands, rated by the simulation (GameState.VictoryStars, Victory event IntValue).
public VictoryRatingData victoryRating
Field Value
Methods
ToDef(SpellDef[])
Bakes the rules with the level's spell definitions.
public LevelRulesDef ToDef(SpellDef[] spells)
Parameters
spellsSpellDef[]