Example #1
0
        /// <summary>Removes the specified entity.</summary>
        /// <param name="entity">The entity.</param>
        protected void Remove(Entity entity)
        {
            Debug.Assert(entity != null, "Entity must not be null.");

            entity.RemoveSystemBit(this.SystemBit);
            if (entity.IsEnabled)
            {
                this.Disable(entity);
            }

            this.OnRemoved(entity);
        }
Example #2
0
 protected void Remove(Entity e)
 {
     System.Diagnostics.Debug.Assert(e != null);
     e.RemoveSystemBit(systemBit);
     if (e.Enabled == true) {
         Disable(e);
     }
     OnRemoved(e);
 }
 protected void Remove(Entity e)
 {
     e.RemoveSystemBit(systemBit);
     if (e.Enabled == true) {
         Disable(e);
     }
     Removed(e);
 }
 private void Remove(Entity e)
 {
     actives.Remove(e.GetId());
     e.RemoveSystemBit(systemBit);
     Removed(e);
 }
        private void Remove(Entity entity)
        {
            Assert.True(_entities.Contains(entity) && entity.SystemMask.HasBits(this.SystemBit));

            _entities.Remove(entity);
            entity.RemoveSystemBit(this.SystemBit);
            this.OnEntityRemoved(entity); 
        }