1
0

TriggerWhitelistComponent.cs 621 B

1234567891011121314151617181920212223
  1. using Content.Shared.Whitelist;
  2. namespace Content.Server.Explosion.Components;
  3. /// <summary>
  4. /// Checks if the user of a Trigger satisfies a whitelist and blacklist condition.
  5. /// Cancels the trigger otherwise.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class TriggerWhitelistComponent : Component
  9. {
  10. /// <summary>
  11. /// Whitelist for what entites can cause this trigger.
  12. /// </summary>
  13. [DataField]
  14. public EntityWhitelist? Whitelist;
  15. /// <summary>
  16. /// Blacklist for what entites can cause this trigger.
  17. /// </summary>
  18. [DataField]
  19. public EntityWhitelist? Blacklist;
  20. }