Struct CampaignLevelChange

Namespace
TDMaker.Unity.Campaign
Assembly
TDMaker.Unity.dll

What one ApplyPending() changed on a level.

public readonly struct CampaignLevelChange
Inherited Members

Constructors

CampaignLevelChange(string, int, int, bool)

Creates a change.

public CampaignLevelChange(string key, int previousStars, int stars, bool firstClear)

Parameters

key string
previousStars int
stars int
firstClear bool

Fields

FirstClear

Whether this merge completed the level for the first time.

public readonly bool FirstClear

Field Value

bool

Key

Level key.

public readonly string Key

Field Value

string

PreviousStars

Best stars before the merge.

public readonly int PreviousStars

Field Value

int

Stars

Best stars after the merge.

public readonly int Stars

Field Value

int

Properties

StarsGained

Stars this merge added to the level (0 when the record was not beaten).

public int StarsGained { get; }

Property Value

int