using Robust.Shared.GameObjects;
namespace Robust.Shared.Containers
{
///
/// The contents of this container have been changed.
///
public class ContainerContentsModifiedMessage : ComponentMessage
{
///
/// Container whose contents were modified.
///
public IContainer Container { get; }
///
/// Entity that was added or removed from the container.
///
public IEntity Entity { get; }
///
/// If true, the entity was removed. If false, it was added to the container.
///
public bool Removed { get; }
///
/// Constructs a new instance of .
///
/// Container whose contents were modified.
/// Entity that was added or removed in the container.
/// If true, the entity was removed. If false, it was added to the container.
public ContainerContentsModifiedMessage(IContainer container, IEntity entity, bool removed)
{
Container = container;
Entity = entity;
Removed = removed;
}
}
}