Class MatchOutcome
Represents the outcome of a multiplayer match (who won, who lost, participants' placements, etc.).
Inheritance
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class MatchOutcome
Constructors
MatchOutcome()
Declaration
public MatchOutcome()
Fields
PlacementUnset
Declaration
public const uint PlacementUnset = 0U
Field Value
Type | Description |
---|---|
System.UInt32 |
Properties
ParticipantIds
The list of the participant IDs added to this match outcome.
Declaration
public List<string> ParticipantIds { get; }
Property Value
Type | Description |
---|---|
List<System.String> | The participant ids. |
Methods
GetParticipantPlacement(String)
Returns the placement for the given participant ID.
Declaration
public uint GetParticipantPlacement(string participantId)
Parameters
Type | Name | Description |
---|---|---|
System.String | participantId | Participant identifier. |
Returns
Type | Description |
---|---|
System.UInt32 | The placement for. |
GetParticipantResult(String)
Returns the result for the given participant ID.
Declaration
public MatchOutcome.ParticipantResult GetParticipantResult(string participantId)
Parameters
Type | Name | Description |
---|---|---|
System.String | participantId | Participant identifier. |
Returns
Type | Description |
---|---|
MatchOutcome.ParticipantResult | The result for. |
SetParticipantPlacement(String, UInt32)
Sets a placement for the given participant, whose result will be set to CustomPlacement automatically.
Declaration
public void SetParticipantPlacement(string participantId, uint placement)
Parameters
Type | Name | Description |
---|---|---|
System.String | participantId | Participant identifier. |
System.UInt32 | placement | Participant's placement, must be a value from 1 to 65535 (inclusive). |
SetParticipantResult(String, MatchOutcome.ParticipantResult)
Sets a result for the given participant. Do not call this method with a CustomPlacement result, instead use SetParticipantPlacement(String, UInt32) if you want to give the participant a result with a custom placement.
Declaration
public void SetParticipantResult(string participantId, MatchOutcome.ParticipantResult result)
Parameters
Type | Name | Description |
---|---|---|
System.String | participantId | |
MatchOutcome.ParticipantResult | result |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |