Struct VoteStartResult
- Namespace
- Unity.Multiplayer.Core
What Start(VoteRequest, IEnumerable<ulong>) did.
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
refusalVoteRefusalreasonstringsequenceint
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
Refusal
Why it did not start; None when it did.
public VoteRefusal Refusal { get; }
Property Value
Sequence
The new vote's number when it started; 0 otherwise.
public int Sequence { get; }
Property Value
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
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.