Class CampaignMapUpdate

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

Everything a map should show after merging victories: new stars, first clears and newly opened levels.

public sealed class CampaignMapUpdate
Inheritance
CampaignMapUpdate
Inherited Members

Constructors

CampaignMapUpdate()

public CampaignMapUpdate()

Fields

Changes

Levels whose record the merge changed (or that were won again without a better rating).

public readonly List<CampaignLevelChange> Changes

Field Value

List<CampaignLevelChange>

NewlyOpened

Keys of the levels that opened (by the merge or by a rule check on map entry).

public readonly List<string> NewlyOpened

Field Value

List<string>

Properties

HasChanges

Whether there is anything to show.

public bool HasChanges { get; }

Property Value

bool

StarsGained

Total stars the merge added.

public int StarsGained { get; }

Property Value

int

Methods

TryGetChange(string, out CampaignLevelChange)

The change of key, if the merge touched it.

public bool TryGetChange(string key, out CampaignLevelChange change)

Parameters

key string
change CampaignLevelChange

Returns

bool