axiosengine/axios/ScreenSystem/PlayerIndexEventArgs.cs
nathan@daedalus bf3950b0c5 Initial tests are looking good, cursor seems to be the only thing that doesn't work.
Tested with Axios Tennis and the new menu looks pretty slick.

--HG--
branch : axios-newgsm
2012-04-17 23:34:46 -05:00

43 lines
1.1 KiB
C#

#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
{
/// <summary>
/// Custom event argument which includes the index of the player who
/// triggered the event. This is used by the MenuEntry.Selected event.
/// </summary>
public class PlayerIndexEventArgs : EventArgs
{
/// <summary>
/// Constructor.
/// </summary>
public PlayerIndexEventArgs(PlayerIndex playerIndex)
{
this.playerIndex = playerIndex;
}
/// <summary>
/// Gets the index of the player who triggered this event.
/// </summary>
public PlayerIndex PlayerIndex
{
get { return playerIndex; }
}
PlayerIndex playerIndex;
}
}