mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* number 15 * evil * borgar * Generic Target System * jafhfjasj * borger * whoops * rename * a * whoop * whoop * thars your problem! * asssssssssssssssssssssssssss * fasfasfsa * random --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
17 lines
708 B
C#
17 lines
708 B
C#
using Content.Shared.EntityConditions;
|
|
|
|
namespace Content.Shared.Objectives.Systems;
|
|
|
|
/// <summary>
|
|
/// The building block for your own target system, doesn't even have its return values defined!
|
|
/// TODO: If engine ever makes Entity<T> share an interface with EntityUid, make this a GenericTargetSystem<T> where T : IWhateverTheFuck
|
|
/// </summary>
|
|
public abstract partial class GenericTargetSystem : EntitySystem
|
|
{
|
|
[Dependency] private SharedEntityConditionsSystem _conditions = default!;
|
|
|
|
protected bool ValidEntity(EntityUid uid, EntityUid? exclude = null, params EntityCondition[] conditions)
|
|
{
|
|
return exclude != uid && _conditions.TryConditions(uid, conditions, exclude);
|
|
}
|
|
}
|