Make `AmbientSoundComponent.Enabled` readonly (#20438)
This commit is contained in:
parent
2468833e49
commit
f8f495d521
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue