mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 17:47:24 +02:00
29 lines
776 B
C#
29 lines
776 B
C#
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Robust.Shared.Containers
|
|
{
|
|
/// <summary>
|
|
/// Raised when the contents of a container have been modified.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public abstract class ContainerModifiedMessage : EntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The container being acted upon.
|
|
/// </summary>
|
|
public BaseContainer Container { get; }
|
|
|
|
/// <summary>
|
|
/// The entity that was removed or inserted from/into the container.
|
|
/// </summary>
|
|
public EntityUid Entity { get; }
|
|
|
|
protected ContainerModifiedMessage(EntityUid entity, BaseContainer container)
|
|
{
|
|
Entity = entity;
|
|
Container = container;
|
|
}
|
|
}
|
|
}
|