Nez.Portable/ECS/InternalUtils/EntityList.cs
/// <summary>
/// returns a list of all entities with tag. If no entities have the tag an empty list is returned. The returned List can be put back in the pool via ListPool.free.
/// </summary>
/// <returns>The with tag.</returns>
/// <param name="tag">Tag.</param>
returns a list of all entities with tag. If no entities have the tag an empty list is returned. The returned List can be put back in the pool via ListPool.free.
returns a list of all entities with tag . If no entities have the tag an empty list is returned . The returned List can be put back in the pool via ListPool . free .
public List<Entity> entitiesWithTag(int tag)
        {
            var list = getTagList(tag);
            var returnList = ListPool<Entity>.obtain();
            returnList.Capacity = _entities.length;
            for (var i = 0; i < list.length; i++)
            {
                returnList.Add(list[i]);
            }
            return returnList;
        }
public List < Entity > entitiesWithTag ( int tag ) { var list = getTagList ( tag ) ; var returnList = ListPool < Entity > . obtain ( ) ; returnList . Capacity = _entities . length ; for ( var i = 0 ; i < list . length ; i ++ ) { returnList . Add ( list [ i ] ) ; } return returnList ; }
returns a list of all entities with tag.
returns a list of all entities with tag .
The with tag.
The with tag .
tag
int
None