次の方法で共有


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 (in microsoft.xna.framework.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

How To: Manage Player Movement Between Lobby and Gameplay Modes

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune