Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ProjectTemplateItem.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 System.Diagnostics;
5 using SiliconStudio.Core;
6 
7 namespace SiliconStudio.ProjectTemplating
8 {
9  /// <summary>
10  /// A file item that will be copied by the template.
11  /// </summary>
12  [DebuggerDisplay("{Source} => {Target}")]
13  [DataContract("ProjectTemplateItem")]
14  [DataStyle(DataStyle.Compact)]
15  public class ProjectTemplateItem
16  {
17  /// <summary>
18  /// Gets or sets the source location relative to the project template.
19  /// </summary>
20  /// <value>The source location.</value>
21  [DataMember(10)]
22  public string Source { get; set; }
23 
24  /// <summary>
25  /// Gets or sets the target location. If null, the source location is used.
26  /// </summary>
27  /// <value>The target location.</value>
28  [DataMember(20)]
29  [DefaultValue(null)]
30  public string Target { get; set; }
31 
32  /// <summary>
33  /// Gets or sets a value indicating whether this file is a T4 template. Default is false. If SourceLocation has the
34  /// extension '.tt', this is default to true.
35  /// </summary>
36  /// <value><c>true</c> if this instance is a T4 template; otherwise, <c>false</c>.</value>
37  [DataMember(30)]
38  [DefaultValue(false)]
39  public bool IsTemplate { get; set; }
40 
41  public override string ToString()
42  {
43  return string.Format("Source: {0}, Target: {1}, IsTemplate: {2}", Source, Target, IsTemplate);
44  }
45  }
46 }
A file item that will be copied by the template.
DataStyle
Specifies the style used for textual serialization when an array/list or a dictionary/map must be ser...
Definition: DataStyle.cs:9