Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DiscardedActionItemsEventArgs.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.ActionStack
4 {
5  /// <summary>
6  /// The argument of the <see cref="ActionStack.ActionItemsDiscarded"/> event.
7  /// </summary>
8  /// <typeparam name="T"></typeparam>
9  public class DiscardedActionItemsEventArgs<T> : ActionItemsEventArgs<T> where T : class, IActionItem
10  {
11  /// <summary>
12  /// Gets the conditions in which the action items have been discarded.
13  /// </summary>
14  public ActionItemDiscardType Type { get; private set; }
15 
16  /// <summary>
17  /// Initializes a new instance of the <see cref="DiscardedActionItemsEventArgs{T}"/> class.
18  /// </summary>
19  /// <param name="type">The type of discard that has been done.</param>
20  /// <param name="actionItems">The action items that have been discarded.</param>
22  : base(actionItems)
23  {
24  Type = type;
25  }
26  }
27 }
ActionItemDiscardType
This enum describes how an action item is being discarded when the ActionStack.ActionItemsDiscarded e...
DiscardedActionItemsEventArgs(ActionItemDiscardType type, T[] actionItems)
Initializes a new instance of the DiscardedActionItemsEventArgs{T} class.
Base interface for action items.
Definition: IActionItem.cs:10