2022-01-30 17:23:37 +11:00
|
|
|
using Content.Server.Atmos.EntitySystems;
|
2020-09-09 21:41:17 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2020-09-09 21:41:17 +02:00
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
2021-06-19 13:25:05 +02:00
|
|
|
namespace Content.Server.Atmos.Components
|
2020-09-09 21:41:17 +02:00
|
|
|
{
|
2022-02-08 00:42:49 -08:00
|
|
|
[RegisterComponent]
|
2022-01-30 17:23:37 +11:00
|
|
|
public sealed class AtmosPlaqueComponent : Component
|
2020-09-09 21:41:17 +02:00
|
|
|
{
|
2022-01-30 17:23:37 +11:00
|
|
|
[DataField("plaqueType")] public PlaqueType Type = PlaqueType.Unset;
|
2020-09-09 21:41:17 +02:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2022-01-30 17:23:37 +11:00
|
|
|
public PlaqueType TypeVV
|
2020-09-09 21:41:17 +02:00
|
|
|
{
|
2022-01-30 17:23:37 +11:00
|
|
|
get => Type;
|
2020-09-09 21:41:17 +02:00
|
|
|
set
|
|
|
|
|
{
|
2022-01-30 17:23:37 +11:00
|
|
|
Type = value;
|
|
|
|
|
EntitySystem.Get<AtmosPlaqueSystem>().UpdateSign(this);
|
2020-09-09 21:41:17 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|