1
0

InteractionRelayComponent.cs 734 B

123456789101112131415161718192021
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Interaction.Components;
  3. /// <summary>
  4. /// Relays an entities interactions to another entity.
  5. /// This doesn't raise the same events, but just relays
  6. /// the clicks of the mouse.
  7. ///
  8. /// Note that extreme caution should be taken when using this, as this will probably bypass many normal can-interact checks.
  9. /// </summary>
  10. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  11. [Access(typeof(SharedInteractionSystem))]
  12. public sealed partial class InteractionRelayComponent : Component
  13. {
  14. /// <summary>
  15. /// The entity the interactions are being relayed to.
  16. /// </summary>
  17. [ViewVariables, AutoNetworkedField]
  18. public EntityUid? RelayEntity;
  19. }