Make AmbientSoundComponent.Enabled readonly (#20438)

This commit is contained in:
Kara
2023-09-24 02:03:29 -07:00
committed by GitHub
parent 4774368f2a
commit e26c0706f6

View File

@@ -12,7 +12,7 @@ namespace Content.Shared.Audio;
[Access(typeof(SharedAmbientSoundSystem))]
public sealed partial class AmbientSoundComponent : Component, IComponentTreeEntry<AmbientSoundComponent>
{
[DataField("enabled")]
[DataField("enabled", readOnly: true)]
[ViewVariables(VVAccess.ReadWrite)] // only for map editing
public bool Enabled { get; set; } = true;