CatStation/Content.Shared/Objectives/Systems/GenericTargetSystem.cs
Princess Cheeseballs c5f5a43dd7
Generic Target System (#43554)
* 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>
2026-07-11 04:11:24 +00:00

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);
}
}