Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DataMemberMode.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 namespace SiliconStudio.Core
4 {
5  /// <summary>
6  /// <para>Specify the way to store a property or field of some class or structure.</para>
7  /// </summary>
8  public enum DataMemberMode
9  {
10  /// <summary>
11  /// Use the default mode depending on the type of the field/property.
12  /// </summary>
13  Default,
14 
15  /// <summary>
16  /// When restored, new object is created by using the parameters in
17  /// the YAML data and assigned to the property / field. When the
18  /// property / filed is writeable, this is the default.
19  /// </summary>
20  Assign,
21 
22  /// <summary>
23  /// Only valid for a property / field that has a class or struct type.
24  /// When restored, instead of recreating the whole class or struct,
25  /// the members are independently restored. When the property / field
26  /// is not writeable this is the default.
27  /// </summary>
28  Content,
29 
30  /// <summary>
31  /// Only valid for a property / field that has an array type of a
32  /// some value type. The content of the array is stored in a binary
33  /// format encoded in base64 style.
34  /// </summary>
35  Binary,
36 
37  /// <summary>
38  /// Only valid for a property that will be used only as a "read only"
39  /// property.
40  /// </summary>
41  ReadOnly,
42 
43  /// <summary>
44  /// The property / field will not be stored.
45  /// </summary>
46  Never,
47  }
48 }
Only valid for a property that will be used only as a "read only" property.
The property / field will not be stored.
Use the default mode depending on the type of the field/property.
Only valid for a property / field that has an array type of a some value type. The content of the arr...
Only valid for a property / field that has a class or struct type. When restored, instead of recreati...
When restored, new object is created by using the parameters in the YAML data and assigned to the pro...