2024-01-15 01:35:28 -05:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Containers;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This is used for a container that is exited when the entity inside of it moves.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
|
|
|
[Access(typeof(ExitContainerOnMoveSystem))]
|
|
|
|
|
public sealed partial class ExitContainerOnMoveComponent : Component
|
|
|
|
|
{
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public string ContainerId;
|
2024-01-27 16:02:34 +03:00
|
|
|
|
|
|
|
|
public ExitContainerOnMoveComponent(string containerId)
|
|
|
|
|
{
|
|
|
|
|
ContainerId = containerId;
|
|
|
|
|
}
|
2024-01-15 01:35:28 -05:00
|
|
|
}
|