Files
RobustToolbox/Robust.Shared/Interfaces/GameObjects/IEntityQuery.cs
T
SilverandGitHub 25926a17b7 Renames SS14.* to Robust.* (#793)
RobustToolbox projects should be named Robust.* 

This PR changes the RobustToolbox projects from SS14.* to Robust.*

Updates SS14.* prefixes/namespaces to Robust.*
Updates SpaceStation14.sln to RobustToolbox.sln
Updates MSBUILD/SS14.* to MSBUILD/Robust.*
Updates CSProject and MSBuild references for the above
Updates git_helper.py
Removes Runserver and Runclient as they are unusable
2019-04-15 20:24:59 -06:00

26 lines
1007 B
C#

using System.Collections.Generic;
namespace Robust.Shared.Interfaces.GameObjects
{
/// <summary>
/// An entity query is a type that can filter entities based on certain criteria,
/// for example based on the components that the entity has.
/// </summary>
public interface IEntityQuery
{
/// <summary>
/// Match the entity and see if it passes the criteria.
/// </summary>
/// <param name="entity">The entity to test.</param>
/// <returns>True if the entity is included in this query, false otherwise</returns>
bool Match(IEntity entity);
/// <summary>
/// Matches every entity in an EntityManager to see if it passes the criteria.
/// </summary>
/// <param name="entityMan">An EntityManager containing a set of entities.</param>
/// <returns>Enumeration of all entities that successfully matched the criteria.</returns>
IEnumerable<IEntity> Match(IEntityManager entityMan);
}
}