Struct VoteStartResult

Namespace
Unity.Multiplayer.Core
public readonly struct VoteStartResult
Inherited Members

Constructors

VoteStartResult(VoteRefusal, string, int)

A result: None with the new vote's sequence, or a refusal and its reason.

public VoteStartResult(VoteRefusal refusal, string reason, int sequence)

Parameters

refusal VoteRefusal
reason string
sequence int

Properties

Reason

A sentence to show the starter (Refused(VoteRefusal, int), or the kind's own reason); empty when it started.

public string Reason { get; }

Property Value

string

Refusal

Why it did not start; None when it did.

public VoteRefusal Refusal { get; }

Property Value

VoteRefusal

Sequence

The new vote's number when it started; 0 otherwise.

public int Sequence { get; }

Property Value

int

Started

True when the vote started (it may already have ended, when the starter's own Yes reached the quorum).

public bool Started { get; }

Property Value

bool

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.