Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SwappingRequest.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.TextureConverter.Requests
4 {
5  internal class SwappingRequest : IRequest
6  {
7  public override RequestType Type { get { return RequestType.Swapping; } }
8 
9  /// <summary>
10  /// The first face.
11  /// </summary>
12  public int FirstSubImageIndex { get; set; }
13 
14  /// <summary>
15  /// The second face.
16  /// </summary>
17  public int SecondSubImageIndex { get; set; }
18 
19 
20  /// <summary>
21  /// Initializes a new instance of the <see cref="SwappingRequest"/> class.
22  /// </summary>
23  public SwappingRequest(int i, int j)
24  {
25  FirstSubImageIndex = i;
26  SecondSubImageIndex = j;
27  }
28  }
29 }
The type of the serialized type will be passed as a generic arguments of the serializer. Example: serializer of A becomes instantiated as Serializer{A}.