6
StarHorizon_Public/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs
2025-11-12 10:55:00 +03:00

13 lines
393 B
C#

namespace Content.Server.Containers
{
/// <summary>
/// Empties a list of containers when the machine is deconstructed via MachineDeconstructedEvent.
/// </summary>
[RegisterComponent]
public sealed partial class EmptyOnMachineDeconstructComponent : Component
{
[DataField("containers")]
public HashSet<string> Containers { get; set; } = new();
}
}