Table of Contents

Class PreparationPhase

Namespace
Uncreated.Warfare.Layouts.Phases
Assembly
Uncreated.Warfare.dll

Handles the preparation or staging phase and the UI countdown for it.

public class PreparationPhase : BasePhase<PhaseTeamSettings>, ILayoutPhase, IEventListener<PlayerExitedZone>, IEventListener<PlayerTeamChanged>, IEventListener<PlayerJoined>, IDisposable
Inheritance
PreparationPhase
Implements
Inherited Members

Constructors

PreparationPhase(IServiceProvider, IConfiguration)

public PreparationPhase(IServiceProvider serviceProvider, IConfiguration config)

Parameters

serviceProvider IServiceProvider
config IConfiguration

Methods

BeginPhaseAsync(CancellationToken)

Activates the phase. This should happen just after the old phase ended if there was one.

public override UniTask BeginPhaseAsync(CancellationToken token = default)

Parameters

token CancellationToken

Returns

UniTask

Remarks

Must set IsActive to true or the phase will be skipped.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

EndPhaseAsync(CancellationToken)

Deactivates the phase.

public override UniTask EndPhaseAsync(CancellationToken token = default)

Parameters

token CancellationToken

Returns

UniTask

StartBroadcastingStagingUI()

Send toast to all players.

protected void StartBroadcastingStagingUI()