#region File Description
//-----------------------------------------------------------------------------
// PlayerIndexEventArgs.cs
//
// XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endregion
#region Using Statements
using System;
using Microsoft.Xna.Framework;
#endregion
namespace GameStateManagement
{
///
/// Custom event argument which includes the index of the player who
/// triggered the event. This is used by the MenuEntry.Selected event.
///
class PlayerIndexEventArgs : EventArgs
{
///
/// Constructor.
///
public PlayerIndexEventArgs(PlayerIndex playerIndex)
{
this.playerIndex = playerIndex;
}
///
/// Gets the index of the player who triggered this event.
///
public PlayerIndex PlayerIndex
{
get { return playerIndex; }
}
PlayerIndex playerIndex;
}
}