From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 24 Jun 2024 09:55:28 +0000 (+1000) Subject: Network BaseEmitSoundComponent (#29400) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c6e5b2339e8cffa4b8f4ba05e78b76758e86ccba;p=space-station-14.git Network BaseEmitSoundComponent (#29400) * Network BaseEmitSoundComponent * high intelligence --- diff --git a/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs b/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs index f997621907..4e6ebb23d2 100644 --- a/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs +++ b/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs @@ -1,17 +1,17 @@ using Robust.Shared.Audio; -namespace Content.Shared.Sound.Components +namespace Content.Shared.Sound.Components; + +/// +/// Base sound emitter which defines most of the data fields. +/// Accepts both single sounds and sound collections. +/// +public abstract partial class BaseEmitSoundComponent : Component { - /// - /// Base sound emitter which defines most of the data fields. - /// Accepts both single sounds and sound collections. - /// - public abstract partial class BaseEmitSoundComponent : Component - { - public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f); + public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f); - [ViewVariables(VVAccess.ReadWrite)] - [DataField("sound", required: true)] - public SoundSpecifier? Sound; - } + [AutoNetworkedField] + [ViewVariables(VVAccess.ReadWrite)] + [DataField(required: true)] + public SoundSpecifier? Sound; }