Adds trash tag to more items. New component "TrashOnEmpty" (#10166)

This commit is contained in:
Jessica M
2022-08-04 01:52:08 -07:00
committed by GitHub
parent 2f4849eae1
commit 39a6c8afb3
9 changed files with 97 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
namespace Content.Server.Nutrition.Components
{
/// <summary>
/// Component that tags solution containers as trash when their contents have been emptied.
/// Used for things like used ketchup packets or used syringes.
/// </summary>
[RegisterComponent]
public sealed class TrashOnEmptyComponent : Component
{
/// <summary>
/// The name of the solution of which to check emptiness
/// </summary>
[ViewVariables] [DataField("solution")]
public string Solution { get; set; } = string.Empty;
}
}