Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
TemplateFolder.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.Collections.Generic;
4 using System.ComponentModel;
5 using SiliconStudio.Core;
6 using SiliconStudio.Core.IO;
7 
8 namespace SiliconStudio.Assets
9 {
10  /// <summary>
11  /// Describes a template folder.
12  /// </summary>
13  [DataContract("TemplateFolder")]
14  public sealed class TemplateFolder
15  {
16  /// <summary>
17  /// Initializes a new instance of the <see cref="TemplateFolder"/> class.
18  /// </summary>
19  public TemplateFolder() : this(null)
20  {
21  }
22 
23  /// <summary>
24  /// Initializes a new instance of the <see cref="TemplateFolder"/> class.
25  /// </summary>
26  /// <param name="path">The path.</param>
28  {
29  Path = path;
30  Files = new List<UFile>();
31  }
32 
33  /// <summary>
34  /// Gets or sets the folder relative to the package where templates are available.
35  /// </summary>
36  /// <value>The path.</value>
37  [DataMember(10)]
38  public UDirectory Path { get; set; }
39 
40  /// <summary>
41  /// Gets or sets the group (used when building a package archive)
42  /// </summary>
43  /// <value>The group.</value>
44  [DataMember(20)]
45  [DefaultValue(null)]
46  [UPath(UPathRelativeTo.None)]
47  public UDirectory Group { get; set; }
48 
49  /// <summary>
50  /// Gets or sets the exclude pattern to exclude files from package archive.
51  /// </summary>
52  /// <value>The exclude.</value>
53  [DataMember(30)]
54  [DefaultValue(null)]
55  public string Exclude { get; set; }
56 
57  /// <summary>
58  /// Gets or sets the files.
59  /// </summary>
60  /// <value>The files.</value>
61  [DataMember(40)]
62  public List<UFile> Files { get; private set; }
63  }
64 }
TemplateFolder(UDirectory path)
Initializes a new instance of the TemplateFolder class.
TemplateFolder()
Initializes a new instance of the TemplateFolder class.
Defines a normalized directory path. See UPath for details. This class cannot be inherited.
Definition: UDirectory.cs:13
Base class that describes a uniform path and provides method to manipulate them. Concrete class are U...
Definition: UPath.cs:21
Describes a template folder.
UPathRelativeTo
Enum UPathRelativeTo