mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* i guess one big mega commit sorry * cleanup and reviews * mfw you cherrypick from an outdated commit on the other branch and its all fucked up and the world sees it.. * reviews
22 lines
728 B
C#
22 lines
728 B
C#
using Content.Shared.Ghost;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.EntityConditions.Conditions.Generic;
|
|
|
|
/// <summary>
|
|
/// Returns true if the entity is a ghost.
|
|
/// </summary>
|
|
public sealed class IsGhostConditionSystem : EntityConditionSystem<TransformComponent, IsGhostCondition>
|
|
{
|
|
protected override void Condition(Entity<TransformComponent> entity, ref EntityConditionEvent<IsGhostCondition> args)
|
|
{
|
|
args.Result = HasComp<GhostComponent>(entity);
|
|
}
|
|
}
|
|
|
|
|
|
/// <inheritdoc cref="EntityCondition"/>
|
|
public sealed partial class IsGhostCondition : EntityConditionBase<IsGhostCondition>
|
|
{
|
|
public override string EntityConditionGuidebookText(IPrototypeManager prototype) => String.Empty;
|
|
}
|