SealableComponent.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using Content.Shared.Nutrition.EntitySystems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Nutrition.Components;
  4. /// <summary>
  5. /// Represents a tamper-evident seal on an Openable.
  6. /// Only affects the Examine text.
  7. /// Once the seal has been broken, it cannot be resealed.
  8. /// </summary>
  9. [NetworkedComponent, AutoGenerateComponentState]
  10. [RegisterComponent, Access(typeof(SealableSystem))]
  11. public sealed partial class SealableComponent : Component
  12. {
  13. /// <summary>
  14. /// Whether the item's seal is intact (i.e. it has never been opened)
  15. /// </summary>
  16. [DataField, AutoNetworkedField]
  17. public bool Sealed = true;
  18. /// <summary>
  19. /// Text shown when examining and the item's seal has not been broken.
  20. /// </summary>
  21. [DataField]
  22. public LocId ExamineTextSealed = "drink-component-on-examine-is-sealed";
  23. /// <summary>
  24. /// Text shown when examining and the item's seal has been broken.
  25. /// </summary>
  26. [DataField]
  27. public LocId ExamineTextUnsealed = "drink-component-on-examine-is-unsealed";
  28. }