Files
tbd-station-14/Content.Server/Atmos/Components/AtmosPlaqueComponent.cs
2022-01-30 17:23:37 +11:00

25 lines
685 B
C#

using Content.Server.Atmos.EntitySystems;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Atmos.Components
{
[RegisterComponent, ComponentProtoName("AtmosPlaque")]
public sealed class AtmosPlaqueComponent : Component
{
[DataField("plaqueType")] public PlaqueType Type = PlaqueType.Unset;
[ViewVariables(VVAccess.ReadWrite)]
public PlaqueType TypeVV
{
get => Type;
set
{
Type = value;
EntitySystem.Get<AtmosPlaqueSystem>().UpdateSign(this);
}
}
}
}