Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetFormatVersionAttribute.cs
Go to the documentation of this file.
1 using System;
2 
3 namespace SiliconStudio.Assets
4 {
5  /// <summary>
6  /// Describes what format version this asset currently uses, for asset upgrading.
7  /// </summary>
8  [AttributeUsage(AttributeTargets.Class)]
9  public class AssetFormatVersionAttribute : Attribute
10  {
11  public AssetFormatVersionAttribute(int version, params Type[] assetUpdaterTypes)
12  {
13  Version = version;
14  AssetUpdaterTypes = assetUpdaterTypes;
15  }
16 
17  /// <summary>
18  /// Gets the current format version of this asset.
19  /// </summary>
20  /// <value>
21  /// The current format version of this asset.
22  /// </value>
23  public int Version { get; private set; }
24 
25  public Type[] AssetUpdaterTypes { get; private set; }
26  }
27 }
Describes what format version this asset currently uses, for asset upgrading.
AssetFormatVersionAttribute(int version, params Type[] assetUpdaterTypes)