Struct VoteRequest
- Namespace
- Unity.Multiplayer.Core
What a player asks for when they start a vote: the kind's id plus an optional number and text payload (a level number, a client id to kick, a map name). The server fills in StartedBy.
public readonly struct VoteRequest
- Inherited Members
Constructors
VoteRequest(string, ulong, long, string)
A request for a kind vote by startedBy, with an optional payload.
public VoteRequest(string kind, ulong startedBy, long number = 0, string text = null)
Parameters
Properties
Kind
The vote kind's id (Id).
public string Kind { get; }
Property Value
Number
The number payload (0 when the kind takes none).
public long Number { get; }
Property Value
StartedBy
Client id of the player who asked.
public ulong StartedBy { get; }
Property Value
Text
The text payload (empty when the kind takes none; never null).
public string Text { 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.