LeaderboardOutcome Enumeration
Values used to provide an outcome for a player's leaderboard entry.
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
public enum LeaderboardOutcome
LeaderboardOutcome is used to set the "Outcome" property of a leaderboard entry. For example:
SignedInGamer gamer = SignedInGamer.SignedInGamers[0]; // Retrieve LeaderboardWriter for the SignedInGamer. LeaderboardWriter writer = gamer.LeaderboardWriter; // Get leaderboard entry by specified leaderboard id. LeaderboardEntry entry = writer.GetLeaderboard( LeaderboardIdentity.Create(LeaderboardKey.BestScoreThisWeek)); // Send the outcome of this match entry.Columns.SetValue("Outcome", LeaderboardOutcome.Win); // Send additional Leaderboard data...
Member name | Description | |
---|---|---|
Loss | Player lost the match. | |
None | No result reported. | |
Tie | Match resulted in a tie: no player won. | |
Win | Player won the match. |
Microsoft.Xna.Framework.GamerServices Namespace
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7