Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ThumbnailBuiltEventArgs.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.IO;
5 
6 using SiliconStudio.Core.IO;
7 using SiliconStudio.Core.Storage;
8 
9 namespace SiliconStudio.Assets.Compiler
10 {
11  /// <summary>
12  /// This enum describes the result of a thumbnail build operation.
13  /// </summary>
15  {
16  /// <summary>
17  /// The build has either failed, or not been triggered due to previous failures
18  /// </summary>
19  Failed,
20  /// <summary>
21  /// The build has either been successfully executed, or already up-to-date
22  /// </summary>
23  Succeeded,
24  /// <summary>
25  /// The build has been cancelled.
26  /// </summary>
27  Cancelled,
28  }
29 
30  /// <summary>
31  /// An event arguments class containing information about a thumbnail creation.
32  /// </summary>
34  {
35  /// <summary>
36  /// Gets the id of the asset whose thumbnail has been built.
37  /// </summary>
38  public Guid AssetId { get; internal set; }
39 
40  /// <summary>
41  /// Gets the url of the asset whose thumbnail has been built.
42  /// </summary>
43  public UFile Url { get; internal set; }
44 
45  /// <summary>
46  /// Gets the value indicating if the result of the build
47  /// </summary>
48  public ThumbnailBuildResult Result { get; internal set; }
49 
50  /// <summary>
51  /// Gets the value indicating if the built thumbnail is different from its previous version.
52  /// </summary>
53  public bool ThumbnailChanged { get; internal set; }
54 
55  /// <summary>
56  /// Gets the stream to the thumbnail PNG file corresponding to the item.
57  /// </summary>
58  /// <remarks>This property is null if <see cref="Result"/> is not <see cref="ThumbnailBuildResult.Succeeded"/>.</remarks>
59  public Stream ThumbnailStream { get; internal set; }
60 
61  /// <summary>
62  /// Gets the hash of the stream to the thumbnail PNG file corresponding to the item.
63  /// </summary>
64  /// <remarks>This property is equal to <see cref="ObjectId.Empty"/> if <see cref="Result"/> is not <see cref="ThumbnailBuildResult.Succeeded"/>.</remarks>
65  public ObjectId ThumbnailId { get; internal set; }
66  }
67 }
The build has been cancelled.
A hash to uniquely identify data.
Definition: ObjectId.cs:13
The build has either failed, or not been triggered due to previous failures
An event arguments class containing information about a thumbnail creation.
ThumbnailBuildResult
This enum describes the result of a thumbnail build operation.
The build has either been successfully executed, or already up-to-date
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13