1
0

SurveillanceCameraMicrophoneComponent.cs 901 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.Whitelist;
  2. namespace Content.Server.SurveillanceCamera;
  3. /// <summary>
  4. /// Component that allows surveillance cameras to listen to the local
  5. /// environment. All surveillance camera monitors have speakers for this.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class SurveillanceCameraMicrophoneComponent : Component
  9. {
  10. [DataField("enabled")]
  11. public bool Enabled { get; set; } = true;
  12. /// <summary>
  13. /// Components that the microphone checks for to avoid transmitting
  14. /// messages from these entities over the surveillance camera.
  15. /// Used to avoid things like feedback loops, or radio spam.
  16. /// </summary>
  17. [DataField("blacklist")]
  18. public EntityWhitelist Blacklist { get; private set; } = new();
  19. [ViewVariables(VVAccess.ReadWrite)]
  20. [DataField("range")]
  21. public int Range { get; private set; } = 10;
  22. }