1
0

SharedInteractionSystem.Relay.cs 406 B

123456789101112131415
  1. using Content.Shared.Interaction.Components;
  2. namespace Content.Shared.Interaction;
  3. public abstract partial class SharedInteractionSystem
  4. {
  5. public void SetRelay(EntityUid uid, EntityUid? relayEntity, InteractionRelayComponent? component = null)
  6. {
  7. if (!Resolve(uid, ref component))
  8. return;
  9. component.RelayEntity = relayEntity;
  10. Dirty(uid, component);
  11. }
  12. }