Share via


NetworkSession.WriteTrueSkill Event

Notifies the game of its final chance to write TrueSkill data for the specified player.

Namespace: Microsoft.Xna.Framework.Net
Assembly: Microsoft.Xna.Framework.Net (in microsoft.xna.framework.net.dll)

Syntax

public event EventHandler<WriteLeaderboardsEventArgs> WriteTrueSkill

Remarks

This event occurs at the end of gameplay, immediately before the session returns to the lobby state, and when a player leaves a session during gameplay. Titles should use NetworkGamer.LeaderboardWriter to respond to this event in two ways, depending on whether or not the player is leaving during an in-progress Ranked game.

  • If the player is leaving an in-progress Ranked game, titles should write bad statistics for the player.
  • If the player is not leaving a Ranked game and the game is returning to the lobby, the game should output their final scores for the session, if they have not already done so.
  • No other networking or gamer services methods may be called from inside this event handler.

See Also

Reference

NetworkSession Class
NetworkSession Members
Microsoft.Xna.Framework.Net Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP