Store ambient sound entities on a component tree. (#13110)
This commit is contained in:
14
Content.Client/Audio/AmbientSoundTreeComponent.cs
Normal file
14
Content.Client/Audio/AmbientSoundTreeComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Content.Shared.Audio;
|
||||
using Robust.Shared.ComponentTrees;
|
||||
using Robust.Shared.Physics;
|
||||
|
||||
namespace Content.Client.Audio;
|
||||
|
||||
/// <summary>
|
||||
/// Samples nearby <see cref="AmbientSoundComponent"/> and plays audio.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class AmbientSoundTreeComponent : Component, IComponentTreeComponent<AmbientSoundComponent>
|
||||
{
|
||||
public DynamicTree<ComponentTreeEntry<AmbientSoundComponent>> Tree { get; set; } = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user