Partager via


NetworkGamer.IsReady Property

Determines whether the gamer is ready to leave the lobby screen and begin gameplay.

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

Syntax

public bool IsReady { get; set; }

Property Value

true if the gamer is ready to start playing; false otherwise.

Exceptions

Exception type Condition
InvalidOperationException
ObjectDisposedException This NetworkGamer is no longer valid. The gamer may have left the session.

Remarks

The host of a multiplayer session can use the IsEveryoneReady property to detect when all players have marked themselves ready, and then call StartGame to kick off the game.

See Also

Tasks

Managing Player Movement Between Lobby and Gameplay Modes

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP