Adds trash tag to more items. New component "TrashOnEmpty" (#10166)
This commit is contained in:
16
Content.Server/Nutrition/Components/TrashOnEmptyComponent.cs
Normal file
16
Content.Server/Nutrition/Components/TrashOnEmptyComponent.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user