Class CampaignSession

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

The save slots whose slot is open right now (set by Open(int)). A SimulationRunner reads the open slot's purchased upgrade ranks and its campaign's upgradeShop from here when a battle starts, and the upgrade shop saves through it, so a flow script needs no extra wiring. Cleared when play mode starts.

public static class CampaignSession
Inheritance
CampaignSession
Inherited Members

Properties

Progress

Progress of the open slot, or null.

public static CampaignProgress Progress { get; }

Property Value

CampaignProgress

Shop

The upgrade shop of the open slot's campaign, or null.

public static UpgradeShopAsset Shop { get; }

Property Value

UpgradeShopAsset

Slots

The slot set that opened the current slot, or null.

public static CampaignSaveSlots Slots { get; }

Property Value

CampaignSaveSlots

Methods

Begin(CampaignSaveSlots)

Makes slots the current session (called by Open(int)).

public static void Begin(CampaignSaveSlots slots)

Parameters

slots CampaignSaveSlots

End()

Ends the session (battles started afterwards apply no campaign upgrades).

public static void End()

SaveActive(CampaignProgress)

Saves the open slot when progress is its progress. Returns whether it was written.

public static bool SaveActive(CampaignProgress progress)

Parameters

progress CampaignProgress

Returns

bool