Example #1
0
 void addEntitySilently(Entity entity) {
     var added = _entities.Add(entity);
     if (added) {
         _entitiesCache = null;
         _singleEntityCache = null;
         entity.Retain();
     }
 }
Example #2
0
        bool addEntitySilently(Entity entity) {
            var added = _entities.Add(entity);
            if (added) {
                _entitiesCache = null;
                _singleEntityCache = null;
                entity.Retain(this);
            }

            return added;
        }
Example #3
0
 void addEntity(Entity entity, int index, IComponent component) {
     var added = _entities.Add(entity);
     if (added) {
         _entitiesCache = null;
         _singleEntityCache = null;
         entity.Retain();
         if (OnEntityAdded != null) {
             OnEntityAdded(this, entity, index, component);
         }
     }
 }
Example #4
0
 void addEntity(Group group, Entity entity, int index, IComponent component)
 {
     _collectedEntities.Add(entity.Retain());
 }
 void addEntity(Group group, Entity entity, int index, IComponent component) {
     var added = _collectedEntities.Add(entity);
     if (added) {
         entity.Retain();
     }
 }