Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
NodeInformation.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 
5 using SiliconStudio.Core;
6 
7 namespace SiliconStudio.Paradox.Assets.Model
8 {
9  [DataContract("NodeInformation")]
10  [DataStyle(DataStyle.Compact)]
11  public class NodeInformation
12  {
13  /// <summary>
14  /// The name of the node.
15  /// </summary>
16  [DataMember(10)]
17  public string Name;
18 
19  /// <summary>
20  /// The index of the parent.
21  /// </summary>
22  [DataMember(20)]
23  public int Depth;
24 
25  /// <summary>
26  /// A flag stating if the node is collapsable.
27  /// </summary>
28  [DataMember(30)]
29  [DefaultValue(true)]
30  public bool Preserve;
31 
32  public NodeInformation()
33  {
34  Preserve = true;
35  }
36 
37  public NodeInformation(string name, int depth, bool preserve)
38  {
39  Name = name;
40  Depth = depth;
41  Preserve = preserve;
42  }
43  }
44 }
bool Preserve
A flag stating if the node is collapsable.
NodeInformation(string name, int depth, bool preserve)
DataStyle
Specifies the style used for textual serialization when an array/list or a dictionary/map must be ser...
Definition: DataStyle.cs:9