Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ExportRequest.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 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Text;
7 
8 namespace SiliconStudio.TextureConverter.Requests
9 {
10  /// <summary>
11  /// Request to export a texture into a file, with a possible minimum mipmap size.
12  /// </summary>
13  internal class ExportRequest : IRequest
14  {
15  public override RequestType Type { get { return RequestType.Export; } }
16 
17 
18  /// <summary>
19  /// The file that will contain the new texture.
20  /// </summary>
21  public String FilePath { get; private set; }
22 
23 
24  /// <summary>
25  /// The size of the smaller mipmap (0 or 1 for a full mipmap chain)
26  /// </summary>
27  public int MinimumMipMapSize { get; private set; }
28 
29 
30  /// <summary>
31  /// Initializes a new instance of the <see cref="ExportRequest"/> class.
32  /// </summary>
33  /// <param name="filePath">The file path.</param>
34  /// <param name="minimumMipMapSize">Minimum size of the mip map.</param>
35  public ExportRequest(String filePath, int minimumMipMapSize)
36  {
37  this.FilePath = filePath;
38  this.MinimumMipMapSize = minimumMipMapSize;
39  }
40  }
41 }
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}.