Predicted footstep sounds (#7107)

This commit is contained in:
metalgearsloth
2022-03-14 02:42:39 +11:00
committed by GitHub
parent dc5720bc86
commit ba9312ccc7
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>