Nez.Portable/ECS/Scene.cs
/// <summary>
/// adds an Entity to the Scene's Entities list
/// </summary>
/// <param name="entity">The Entity to add</param>
adds an Entity to the Scene's Entities list
adds an Entity to the Scene ' s Entities list
public T addEntity<T>(T entity)
            where T : Entity
        {
            Assert.isFalse(
                entities.contains(entity),
                "You are attempting to add the same entity to a scene twice: {0}",
                entity);
            entities.add(entity);
            entity.scene = this;
            return entity;
        }
public T addEntity < T > ( T entity ) where T : Entity { Assert . isFalse ( entities . contains ( entity ) , " " , entity ) ; entities . add ( entity ) ; entity . scene = this ; return entity ; }
adds an Entity to the Scene's Entities list
adds an Entity to the Scene ' s Entities list
entity
T
The Entity to add
The Entity to add