Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
MaterialFloatNode.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 SiliconStudio.Core;
4 using SiliconStudio.Core.Serialization.Contents;
5 
6 namespace SiliconStudio.Paradox.Assets.Materials.Nodes
7 {
8  [ContentSerializer(typeof(DataContentSerializer<MaterialFloatNode>))]
9  [DataContract("MaterialFloatNode")]
10  public class MaterialFloatNode : MaterialConstantNode<float>
11  {
12  /// <summary>
13  /// Initializes a new instance of the <see cref="MaterialFloatNode"/> class.
14  /// </summary>
16  : this(0.0f)
17  {
18  }
19 
20  /// <summary>
21  /// Initializes a new instance of the <see cref="MaterialFloatNode"/> class.
22  /// </summary>
23  /// <param name="value">The value.</param>
24  public MaterialFloatNode(float value)
25  : base(value)
26  {
27  }
28 
29  /// <inheritdoc/>
30  public override string ToString()
31  {
32  return "Float";
33  }
34  }
35 }
MaterialFloatNode()
Initializes a new instance of the MaterialFloatNode class.
MaterialFloatNode(float value)
Initializes a new instance of the MaterialFloatNode class.