コード例 #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(StorageDeviceEventArgs args)
        {
            args.Response = StorageDeviceEventResponse.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;
        }
コード例 #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(StorageDeviceEventArgs 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;
        }
コード例 #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(StorageDeviceEventArgs 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;
		}
コード例 #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(StorageDeviceEventArgs args)
		{
			args.Response = StorageDeviceEventResponse.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;
		}