Class VictoryRatingData

Namespace
TDMaker.Unity.Authoring
Assembly
TDMaker.Unity.dll

Victory star bands by the share of starting lives left (inclusive): at or above threeStarLifeRatio = 3 stars, at or above twoStarLifeRatio = 2 stars, otherwise 1. Bakes to VictoryRatingDef.

public sealed class VictoryRatingData
Inheritance
VictoryRatingData
Inherited Members

Constructors

VictoryRatingData()

public VictoryRatingData()

Fields

threeStarLifeRatio

Share of starting lives (0..1) needed for three stars.

[Tooltip("Share of starting lives (0..1) still left needed for three stars. Not below the two-star share.")]
[Range(0, 1)]
public float threeStarLifeRatio

Field Value

float

twoStarLifeRatio

Share of starting lives (0..1) needed for two stars.

[Tooltip("Share of starting lives (0..1) still left needed for two stars.")]
[Range(0, 1)]
public float twoStarLifeRatio

Field Value

float

Methods

ToDef()

Bakes the bands (the three-star share is raised to the two-star share if authored lower).

public VictoryRatingDef ToDef()

Returns

VictoryRatingDef