Make AmbientSoundComponent.Enabled readonly (#20438)
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Content.Shared.Audio;
|
|||||||
[Access(typeof(SharedAmbientSoundSystem))]
|
[Access(typeof(SharedAmbientSoundSystem))]
|
||||||
public sealed partial class AmbientSoundComponent : Component, IComponentTreeEntry<AmbientSoundComponent>
|
public sealed partial class AmbientSoundComponent : Component, IComponentTreeEntry<AmbientSoundComponent>
|
||||||
{
|
{
|
||||||
[DataField("enabled")]
|
[DataField("enabled", readOnly: true)]
|
||||||
[ViewVariables(VVAccess.ReadWrite)] // only for map editing
|
[ViewVariables(VVAccess.ReadWrite)] // only for map editing
|
||||||
public bool Enabled { get; set; } = true;
|
public bool Enabled { get; set; } = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user