Table of Contents

Struct VoteSettings

Namespace
Uncreated.Warfare.Players
Assembly
Uncreated.Warfare.dll

Settings used to start votes for IPlayerVoteManager.

public readonly struct VoteSettings
Inherited Members

Properties

DefaultResult

The vote result in the case of a tie (or no one votes).

public VoteResult DefaultResult { get; init; }

Property Value

VoteResult

Remarks

Defaults to No.

Display

Allows the vote to be displayed somehow.

public IVoteDisplay? Display { get; init; }

Property Value

IVoteDisplay

Duration

Total duration of the vote.

public required TimeSpan Duration { get; init; }

Property Value

TimeSpan

OwnsDisplay

Whether or not Display should be disposed at the end of this vote, if it implements IDisposable.

public bool OwnsDisplay { get; init; }

Property Value

bool

VoteCancellationToken

Cancellation used to cancel the vote.

public CancellationToken VoteCancellationToken { get; init; }

Property Value

CancellationToken