Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
StateInitializer.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 using System.Collections;
5 using System.Collections.Generic;
6 
7 namespace SiliconStudio.Shaders.Ast.Hlsl
8 {
9  /// <summary>
10  /// A set of state values.
11  /// </summary>
13  {
14  #region Constructors and Destructors
15 
16  /// <summary>
17  /// Initializes a new instance of the <see cref = "StateInitializer" /> class.
18  /// </summary>
20  {
21  Items = new List<Expression>();
22  }
23 
24  #endregion
25 
26  #region Public Properties
27 
28  /// <summary>
29  /// Gets or sets the fields.
30  /// </summary>
31  /// <value>
32  /// The fields.
33  /// </value>
34  public List<Expression> Items { get; set; }
35 
36  #endregion
37 
38  #region Public Methods
39 
40  /// <inheritdoc />
41  public override IEnumerable<Node> Childrens()
42  {
43  return Items;
44  }
45 
46  /// <inheritdoc />
47  public override string ToString()
48  {
49  return "{...}";
50  }
51 
52  #endregion
53  }
54 }
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
StateInitializer()
Initializes a new instance of the StateInitializer class.