6
StarHorizon_Public/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs
2026-01-13 18:31:02 +02: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();
}
}