Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetAliasAttribute.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 
5 namespace SiliconStudio.Assets
6 {
7  /// <summary>
8  /// Associates a type name used in YAML content.
9  /// </summary>
11  {
12  private readonly string alias;
13 
14  /// <summary>
15  /// Initializes a new instance of the <see cref="AssetAliasAttribute"/> class.
16  /// </summary>
17  /// <param name="alias">The type name.</param>
18  public AssetAliasAttribute(string @alias)
19  {
20  this.alias = alias;
21  }
22 
23  /// <summary>
24  /// Gets the type name.
25  /// </summary>
26  /// <value>The type name.</value>
27  public string Alias
28  {
29  get
30  {
31  return alias;
32  }
33  }
34  }
35 }
AssetAliasAttribute(string @alias)
Initializes a new instance of the AssetAliasAttribute class.
Associates a type name used in YAML content.