mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-16 07:12:27 +02:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using System.ComponentModel;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Robust.Shared.Containers;
|
|
|
|
public abstract class ContainerAttemptEventBase : CancellableEntityEventArgs
|
|
{
|
|
public readonly IContainer Container;
|
|
public readonly EntityUid EntityUid;
|
|
|
|
public ContainerAttemptEventBase(IContainer container, EntityUid entityUid)
|
|
{
|
|
Container = container;
|
|
EntityUid = entityUid;
|
|
}
|
|
}
|
|
|
|
public sealed class ContainerIsInsertingAttemptEvent : ContainerAttemptEventBase
|
|
{
|
|
public ContainerIsInsertingAttemptEvent(IContainer container, EntityUid entityUid) : base(container, entityUid)
|
|
{
|
|
}
|
|
}
|
|
|
|
public sealed class ContainerGettingInsertedAttemptEvent : ContainerAttemptEventBase
|
|
{
|
|
public ContainerGettingInsertedAttemptEvent(IContainer container, EntityUid entityUid) : base(container, entityUid)
|
|
{
|
|
}
|
|
}
|
|
|
|
public sealed class ContainerIsRemovingAttemptEvent : ContainerAttemptEventBase
|
|
{
|
|
public ContainerIsRemovingAttemptEvent(IContainer container, EntityUid entityUid) : base(container, entityUid)
|
|
{
|
|
}
|
|
}
|
|
|
|
public sealed class ContainerGettingRemovedAttemptEvent : ContainerAttemptEventBase
|
|
{
|
|
public ContainerGettingRemovedAttemptEvent(IContainer container, EntityUid entityUid) : base(container, entityUid)
|
|
{
|
|
}
|
|
}
|