CatStation/Content.Shared/Vehicle/Components/ContainerVehicleComponent.cs

19 lines
643 B
C#

using Content.Shared.Vehicle.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Vehicle.Components;
/// <summary>
/// A <see cref="VehicleComponent"/> whose operator must be inside a specified container.
/// Note that the operator is the first to enter the container and won't be removed until they exit the container.
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(VehicleSystem))]
public sealed partial class ContainerVehicleComponent : Component
{
/// <summary>
/// The ID of the container for the operator.
/// </summary>
[DataField(required: true)]
public string ContainerId;
}