using Content.Shared.Singularity.Components;
using Robust.Shared.Containers;
namespace Content.Server.Singularity.Events;
///
/// Event raised on the event horizon entity whenever an event horizon consumes an entity.
///
[ByRefEvent]
public readonly record struct EntityConsumedByEventHorizonEvent
(EntityUid entity, EntityUid eventHorizonUid, EventHorizonComponent eventHorizon, BaseContainer? container)
{
///
/// The entity being consumed by the event horizon.
///
public readonly EntityUid Entity = entity;
///
/// The uid of the event horizon consuming the entity.
///
public readonly EntityUid EventHorizonUid = eventHorizonUid;
///
/// The event horizon consuming the entity.
///
public readonly EventHorizonComponent EventHorizon = eventHorizon;
///
/// The innermost container of the entity being consumed by the event horizon that is not also in the process of being consumed by the event horizon.
/// Used to correctly dump out the contents containers that are consumed by the event horizon.
///
public readonly BaseContainer? Container = container;
}