namespace Microsoft.Xna.Framework.GamerServices
{
///
/// Base class for all gamer types.
///
public abstract class Gamer
{
///
/// Gets the gamertag for this gamer.
///
public abstract string Gamertag { get; }
///
/// Gets the display name for this gamer.
///
public virtual string DisplayName => Gamertag;
///
/// Gets custom data associated with this gamer.
///
public object Tag { get; set; }
///
/// Gets the signed-in gamers.
///
public static GamerCollection SignedInGamers => signedInGamers;
private static readonly GamerCollection signedInGamers;
static Gamer()
{
// Initialize with current signed-in gamer
var gamers = new List { SignedInGamer.Current };
signedInGamers = new GamerCollection(gamers);
}
}
}