Predicted footstep sounds (#7060)

This commit is contained in:
metalgearsloth
2022-03-11 12:48:03 +11:00
committed by GitHub
parent b9bc1ebebe
commit f1e6a352a8
8 changed files with 168 additions and 177 deletions

View File

@@ -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>