Problem
You want to set rich status information for gamers that can be displayed to other Xbox Live players who can see it through the Xbox guide or on the http://www.xbox.com website.
Solution
Most games can add rich status information to players so that other players can see what game players are playing and what they are currently playing. You can set this information in the gamer. signedingamers [0]. Presence attribute.
Working Principle
With the xNa network function, you must first ensure that the player has logged on to Xbox Live before setting the player's rich status information. You can select from 60 presencemodes, which is very easy for logged-on players:
Gamer. signedingamers [0]. presence. presencemode = gamerpresencemode. atmenu;
All presencemodes are shown in Table 8-1.
Table 8-1 60 presencemodes
For certain modes (stage, level, score, coopstage, and versusscore), you can set a value to indicate the player's stage or level or current score. The following example shows that the player is on the 15th mark:
Gamer. signedingamers [0]. presence. presencemode = gamerpresencemode. level; gamer. signedingamers [0]. presence. presencevalue = 15;