Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
EntityGroup.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.Generic;
5 
6 using SiliconStudio.Core.Serialization.Contents;
7 using SiliconStudio.Core.Serialization.Converters;
8 using SiliconStudio.Paradox.Engine;
9 
10 namespace SiliconStudio.Paradox.EntityModel
11 {
12  /// <summary>
13  /// A group of <see cref="Entity"/> that can refers to each others.
14  /// They can be loaded together as a chunk.
15  /// </summary>
16  [ContentSerializer(typeof(DataContentConverterSerializer<EntityGroup>))]
17  [DataConverter(AutoGenerate = true, ContentReference = true)]
18  public class EntityGroup
19  {
20  // TODO:FX We probably want to expose only Root entities and let hierarchy do the rest, so that it's easier to manipulate.
21  [DataMemberConvert]
22  public List<Entity> Entities { get; private set; }
23 
24  public EntityGroup()
25  {
26  Entities = new List<Entity>();
27  }
28  }
29 }
Base class for converters to/from a data type.
A group of Entity that can refers to each others. They can be loaded together as a chunk...
Definition: EntityGroup.cs:18