Event arguments for the SaveDevice class.
Inheritance: System.EventArgs
Exemplo n.º 1
0
        /// <summary>
        /// Prepares the SaveDeviceEventArgs to be used for an event.
        /// </summary>
        /// <remarks>
        /// Subclasses can override this method to change the default argument values.
        /// </remarks>
        /// <param name="args">The event arguments to be configured.</param>
        protected virtual void PrepareEventArgs(SaveDeviceEventArgs args)
        {
            args.Response = SaveDeviceEventResponse.Prompt;

            // the PlayerSaveDevice overrides us to set this to the player
            // so we'll default to null under the assumption that it's ok
            // for any player to handle the message
            args.PlayerToPrompt = null;
        }
Exemplo n.º 2
0
		/// <summary>
		/// Prepares the SaveDeviceEventArgs to be used for an event.
		/// </summary>
		/// <param name="args">The event arguments to be configured.</param>
		protected override void PrepareEventArgs(SaveDeviceEventArgs args)
		{
			// the base implementation sets some aspects of the arguments,
			// so we let it do that first
			base.PrepareEventArgs(args);

			// we then default the player to prompt to be the player that
			// owns this storage device. we assume the game will leave this
			// untouched so that the correct player is prompted, but we also
			// allow the game to change it if there's a reason to.
			args.PlayerToPrompt = Player;
		}
Exemplo n.º 3
0
        /// <summary>
        /// Prepares the SaveDeviceEventArgs to be used for an event.
        /// </summary>
        /// <param name="args">The event arguments to be configured.</param>
        protected override void PrepareEventArgs(SaveDeviceEventArgs args)
        {
            // the base implementation sets some aspects of the arguments,
            // so we let it do that first
            base.PrepareEventArgs(args);

            // we then default the player to prompt to be the player that
            // owns this storage device. we assume the game will leave this
            // untouched so that the correct player is prompted, but we also
            // allow the game to change it if there's a reason to.
            args.PlayerToPrompt = Player;
        }
Exemplo n.º 4
0
		/// <summary>
		/// Prepares the SaveDeviceEventArgs to be used for an event.
		/// </summary>
		/// <remarks>
		/// Subclasses can override this method to change the default argument values.
		/// </remarks>
		/// <param name="args">The event arguments to be configured.</param>
		protected virtual void PrepareEventArgs(SaveDeviceEventArgs args)
		{
			args.Response = SaveDeviceEventResponse.Prompt;

			// the PlayerSaveDevice overrides us to set this to the player
			// so we'll default to null under the assumption that it's ok
			// for any player to handle the message
			args.PlayerToPrompt = null;
		}