Fixes singularity collision and consume range (#13424)
Co-authored-by: keronshb <keronshb@live.com>
This commit is contained in:
@@ -6,28 +6,28 @@ namespace Content.Server.Singularity.Events;
|
||||
/// <summary>
|
||||
/// Event raised on the event horizon entity whenever an event horizon consumes an entity.
|
||||
/// </summary>
|
||||
public sealed class EntityConsumedByEventHorizonEvent : EntityEventArgs
|
||||
[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;
|
||||
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;
|
||||
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;
|
||||
|
||||
public EntityConsumedByEventHorizonEvent(EntityUid entity, EventHorizonComponent eventHorizon, IContainer? container = null)
|
||||
{
|
||||
Entity = entity;
|
||||
EventHorizon = eventHorizon;
|
||||
Container = container;
|
||||
}
|
||||
public readonly IContainer? Container = container;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user