Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SettingsEntryValue.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.IO;
4 
5 namespace SiliconStudio.Presentation.Settings
6 {
7  /// <summary>
8  /// An internal object that represent a single value for a settings key into a <see cref="SettingsProfile"/>.
9  /// </summary>
10  internal class SettingsEntryValue : SettingsEntry
11  {
12  /// <summary>
13  /// Initializes a new instance of the <see cref="SettingsEntryValue"/> class.
14  /// </summary>
15  /// <param name="profile">The profile this <see cref="SettingsEntryValue"/>belongs to.</param>
16  /// <param name="name">The name associated to this <see cref="SettingsEntryValue"/>.</param>
17  /// <param name="value">The value to associate to this <see cref="SettingsEntryValue"/>.</param>
18  internal SettingsEntryValue(SettingsProfile profile, UFile name, object value)
19  : base(profile, name)
20  {
21  Value = value;
22  ShouldNotify = true;
23  }
24 
25  /// <inheritdoc/>
26  internal override object GetSerializableValue()
27  {
28  return Value != null ? Value.ToString() : null;
29  }
30  }
31 }
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13