Files
OldThink/Content.Shared/Containers/ExitContainerOnMoveComponent.cs

20 lines
531 B
C#
Raw Normal View History

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;
}
}