Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
EntityExtensions.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.Paradox.EntityModel
4 {
5  public static class EntityExtensions
6  {
7  /// <summary>
8  /// Deep clone of this entity.
9  /// </summary>
10  /// <param name="entity">The entity to clone</param>
11  /// <returns>The cloned entity</returns>
12  public static Entity Clone(this Entity entity)
13  {
14  return EntityCloner.Clone(entity);
15  }
16  }
17 }
Game entity. It usually aggregates multiple EntityComponent
Definition: Entity.cs:28
static Entity Clone(this Entity entity)
Deep clone of this entity.