Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetImportTracked.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.ComponentModel;
4 using SiliconStudio.Core;
5 using SiliconStudio.Core.Storage;
6 
7 namespace SiliconStudio.Assets
8 {
9  /// <summary>
10  /// An importable asset with a content that need to be tracked if original asset is changing.
11  /// </summary>
12  [DataContract]
13  public abstract class AssetImportTracked : AssetImport
14  {
15  /// <summary>
16  /// Gets or sets the source hash.
17  /// </summary>
18  /// <value>The source hash.</value>
19  [DataMember(-30)]
20  [DefaultValue(null)]
21  [Browsable(false)]
22  public ObjectId? SourceHash { get; set; }
23 
24  override internal void SetAsRootImport()
25  {
26  base.SetAsRootImport();
27  ImporterId = null;
28  SourceHash = null;
29  }
30  }
31 }
An importable asset with a content that need to be tracked if original asset is changing.
A hash to uniquely identify data.
Definition: ObjectId.cs:13
An importable asset.
Definition: AssetImport.cs:14