12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #region File Description
- //-----------------------------------------------------------------------------
- // PlayerIndexEventArgs.cs
- //
- // XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- #endregion
- #region Using Statements
- using System;
- #if IPHONE
- using Microsoft.Xna.Framework;
- #else
- using Microsoft.Xna.Framework;
- #endif
- #endregion
- namespace Microsoft.Xna.Samples.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>
- 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;
- }
- }
|