2022-01-30 17:23:37 +11:00
|
|
|
using Content.Server.Atmos.EntitySystems;
|
2020-09-09 21:41:17 +02:00
|
|
|
|
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]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial 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;
|
2024-05-12 17:34:52 -07:00
|
|
|
IoCManager.Resolve<IEntityManager>().System<AtmosPlaqueSystem>().UpdateSign(Owner, this);
|
2020-09-09 21:41:17 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|