Class UpgradeRunRecord
- Namespace
- TDMaker.Unity.View
- Assembly
- TDMaker.Unity.dll
The permanent upgrades of one run: the shop's name, the purchased rank of every track and the forced rank (-1 = none).
Saved next to a recorded command log (<file>.upgrades.json) so a replay rebuilds the same snapshot.
public sealed class UpgradeRunRecord
- Inheritance
-
UpgradeRunRecord
- Inherited Members
Constructors
UpgradeRunRecord()
public UpgradeRunRecord()
Fields
forcedRank
Rank forced on every track, or -1.
public int forcedRank
Field Value
ranks
Purchased rank per track key.
public List<UpgradeRankRecord> ranks
Field Value
shop
Name of the shop asset (informational).
public string shop
Field Value
Methods
Capture(UpgradeShopAsset, Func<string, int>, int)
Copies the ranks purchased reports for every track of shop.
public static UpgradeRunRecord Capture(UpgradeShopAsset shop, Func<string, int> purchased, int forced = -1)
Parameters
shopUpgradeShopAssetpurchasedFunc<string, int>forcedint
Returns
HasEffect(UpgradeShopAsset)
Whether the record applies any rank of shop.
public bool HasEffect(UpgradeShopAsset shop)
Parameters
shopUpgradeShopAsset
Returns
RankOf(string)
Purchased rank of track (0 when absent).
public int RankOf(string track)
Parameters
trackstring