mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Added a basic server simulation framework for help with tests. * Moved as much as possible to Robust.Shared/Containers. Moved ContainerSlot from content to engine. * Moved ClientContainer to shared. * Merged client/server ContainerManagerComponents into a single shared version. * ContainerManagerComponent is now implicitly registered with the attributes. * Migrated to 2021 serialization technology. * Existing Unit Tests work. * More tests coverage. Fixed bug with transferring items between containers. * Container Type info is now sent over the network. * Merge client/server container systems. * Code cleanup. * Attempted to fix dictionary serialization. Logs warning when trying to check if an unknown GridId is paused. * Remove OldCode.
29 lines
770 B
C#
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 : EntitySystemMessage
|
|
{
|
|
/// <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 IEntity Entity { get; }
|
|
|
|
protected ContainerModifiedMessage(IEntity entity, IContainer container)
|
|
{
|
|
Entity = entity;
|
|
Container = container;
|
|
}
|
|
}
|
|
}
|