Class ProgressionRules

Namespace
SurvivorsMaker.Run
Assembly
SurvivorsMaker.Run.dll

Records completed runs and applies persistent unlock conditions to the content catalog.

public sealed class ProgressionRules : IProgressionRules
Inheritance
ProgressionRules
Implements
Inherited Members

Constructors

ProgressionRules()

public ProgressionRules()

Methods

ApplyUnlocks(ProfileState, RunContent)

Sets Available on unlock targets: true when unlocked in the profile, false when locked.

public void ApplyUnlocks(ProfileState profile, RunContent content)

Parameters

profile ProfileState
content RunContent

RecordRun(ProfileState, RunContent, RunState)

Records a finished run (Won/Lost) and returns the unlocks it newly earned, in content order.

public List<UnlockDef> RecordRun(ProfileState profile, RunContent content, RunState finished)

Parameters

profile ProfileState
content RunContent
finished RunState

Returns

List<UnlockDef>