AmbientSoundTreeComponent.cs 463 B

1234567891011121314
  1. using Content.Shared.Audio;
  2. using Robust.Shared.ComponentTrees;
  3. using Robust.Shared.Physics;
  4. namespace Content.Client.Audio;
  5. /// <summary>
  6. /// Samples nearby <see cref="AmbientSoundComponent"/> and plays audio.
  7. /// </summary>
  8. [RegisterComponent]
  9. public sealed partial class AmbientSoundTreeComponent : Component, IComponentTreeComponent<AmbientSoundComponent>
  10. {
  11. public DynamicTree<ComponentTreeEntry<AmbientSoundComponent>> Tree { get; set; } = default!;
  12. }