Files
tbd-station-14/Content.Server/Atmos/Components/AtmosPlaqueComponent.cs
2022-02-08 19:42:49 +11:00

25 lines
650 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]
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);
}
}
}
}