6
StarHorizon_Public/Content.Shared/Interaction/SharedInteractionSystem.Relay.cs
2026-01-24 12:49:55 +03:00

16 lines
406 B
C#

using Content.Shared.Interaction.Components;
namespace Content.Shared.Interaction;
public abstract partial class SharedInteractionSystem
{
public void SetRelay(EntityUid uid, EntityUid? relayEntity, InteractionRelayComponent? component = null)
{
if (!Resolve(uid, ref component))
return;
component.RelayEntity = relayEntity;
Dirty(uid, component);
}
}