Files
RobustToolbox/Robust.Shared/Containers/Events/ContainerModifiedMessage.cs
T
3ffdc8cc2d changes needed for inventory refactor (#2350)
* get that crap outta here

* reenables tests

* helper

* removes serverside itemcomp & misc fixes

* oopsie

* fixes tests

* motivation low

* container stuff

* resolves optional

* fix some tests

* fixes

Co-authored-by: Paul Ritter <ritter.paul1@gmail.com>
2021-12-30 22:54:00 +01:00

29 lines
770 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 IContainer Container { get; }
/// <summary>
/// The entity that was removed or inserted from/into the container.
/// </summary>
public EntityUid Entity { get; }
protected ContainerModifiedMessage(EntityUid entity, IContainer container)
{
Entity = entity;
Container = container;
}
}
}