Predicted footstep sounds (#7060)
This commit is contained in:
@@ -177,6 +177,15 @@ public sealed class TagSystem : EntitySystem
|
||||
HasTag(component, id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if a tag has been added to an entity.
|
||||
/// </summary>
|
||||
public bool HasTag(EntityUid entity, string id, EntityQuery<TagComponent> tagQuery)
|
||||
{
|
||||
return tagQuery.TryGetComponent(entity, out var component) &&
|
||||
HasTag(component, id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if all of the given tags have been added to an entity.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user