AtmosPlaqueComponent.cs 570 B

123456789101112131415161718192021
  1. using Content.Server.Atmos.EntitySystems;
  2. namespace Content.Server.Atmos.Components
  3. {
  4. [RegisterComponent]
  5. public sealed partial class AtmosPlaqueComponent : Component
  6. {
  7. [DataField("plaqueType")] public PlaqueType Type = PlaqueType.Unset;
  8. [ViewVariables(VVAccess.ReadWrite)]
  9. public PlaqueType TypeVV
  10. {
  11. get => Type;
  12. set
  13. {
  14. Type = value;
  15. IoCManager.Resolve<IEntityManager>().System<AtmosPlaqueSystem>().UpdateSign(Owner, this);
  16. }
  17. }
  18. }
  19. }