Nez.Portable/ECS/InternalUtils/EntityList.cs
/// <summary>
/// returns the first Entity found with a name of name. If none are found returns null.
/// </summary>
/// <returns>The entity.</returns>
/// <param name="name">Name.</param>
returns the first Entity found with a name of name. If none are found returns null.
returns the first Entity found with a name of name . If none are found returns null .
public Entity findEntity(string name)
        {
            for (var i = 0; i < _entities.length; i++)
            {
                if (_entities.buffer[i].name == name)
                    return _entities.buffer[i];
            }
            foreach (var entity in _entitiesToAdd)
            {
                if (entity.name == name)
                    return entity;
            }
            return null;
        }
public Entity findEntity ( string name ) { for ( var i = 0 ; i < _entities . length ; i ++ ) { if ( _entities . buffer [ i ] . name == name ) return _entities . buffer [ i ] ; } foreach ( var entity in _entitiesToAdd ) { if ( entity . name == name ) return entity ; } return null ; }
returns the first Entity found with a name of name.
returns the first Entity found with a name of name .
None
name
string
None