Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ThumbnailCommandParameters.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 SiliconStudio.Core;
4 using SiliconStudio.Core.Mathematics;
5 
6 namespace SiliconStudio.Assets.Compiler
7 {
8  /// <summary>
9  /// The minimum parameters needed by a thumbnail build command.
10  /// </summary>
11  [DataContract]
13  {
15  {
16  }
17 
18  public ThumbnailCommandParameters(string thumbnailUrl, Int2 thumbnailSize)
19  {
20  ThumbnailUrl = thumbnailUrl;
21  ThumbnailSize = thumbnailSize;
22  }
23 
24  public string ThumbnailUrl; // needed to force re-calculation of thumbnails when asset file is move
25 
27 
28  public Vector3 UpAxis = Vector3.UnitY;
29 
30  public Vector3 FrontAxis = -Vector3.UnitZ;
31  }
32 
33  /// <summary>
34  /// The parameters of a build command containing a typed reference to the asset to build.
35  /// </summary>
36  [DataContract]
38  {
40  {
41  }
42 
43  public ThumbnailCommandParameters(T asset, string thumbnailUrl, Int2 thumbnailSize)
44  : base(thumbnailUrl, thumbnailSize)
45  {
46  Asset = asset;
47  }
48 
49  public T Asset;
50  }
51 }
Base class for Asset.
Definition: Asset.cs:14
Represents a three dimensional mathematical vector.
Definition: Vector3.cs:42
Represents a three dimensional mathematical vector.
Definition: Int2.cs:41
ThumbnailCommandParameters(string thumbnailUrl, Int2 thumbnailSize)
The minimum parameters needed by a thumbnail build command.
ThumbnailCommandParameters(T asset, string thumbnailUrl, Int2 thumbnailSize)