34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using Content.Shared.Singularity.Components;
|
|
using Robust.Shared.Containers;
|
|
|
|
namespace Content.Server.Singularity.Events;
|
|
|
|
/// <summary>
|
|
/// Event raised on the event horizon entity whenever an event horizon consumes an entity.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public readonly record struct EntityConsumedByEventHorizonEvent
|
|
(EntityUid entity, EntityUid eventHorizonUid, EventHorizonComponent eventHorizon, IContainer? container)
|
|
{
|
|
/// <summary>
|
|
/// The entity being consumed by the event horizon.
|
|
/// </summary>
|
|
public readonly EntityUid Entity = entity;
|
|
|
|
/// <summary>
|
|
/// The uid of the event horizon consuming the entity.
|
|
/// </summary>
|
|
public readonly EntityUid EventHorizonUid = eventHorizonUid;
|
|
|
|
/// <summary>
|
|
/// The event horizon consuming the entity.
|
|
/// </summary>
|
|
public readonly EventHorizonComponent EventHorizon = eventHorizon;
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public readonly IContainer? Container = container;
|
|
}
|