1
0

SpillWhenWornComponent.cs 671 B

123456789101112131415161718192021222324
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Fluids.Components;
  3. /// <summary>
  4. /// This entity will spill its contained solution onto the wearer when worn, and its
  5. /// (empty) contents will be inaccessible while still worn.
  6. /// </summary>
  7. [RegisterComponent]
  8. [NetworkedComponent, AutoGenerateComponentState]
  9. public sealed partial class SpillWhenWornComponent : Component
  10. {
  11. /// <summary>
  12. /// Name of the solution to spill.
  13. /// </summary>
  14. [DataField]
  15. public string Solution = "default";
  16. /// <summary>
  17. /// Tracks if this item is currently being worn.
  18. /// </summary>
  19. [DataField, AutoNetworkedField]
  20. public bool IsWorn;
  21. }