CatStation/Content.Shared/Vehicle/Components/ContainerVehicleComponent.cs
AndrewFenriz d2472f82ed
Hand blocker for vehicles (and mechs) (#45045)
* add BlockHands

* and mechs

* move to another place

* small fix

* TrySpawnUnremoveableVirtualItemInHand

* upd

* fix docs

* VehicleHandBlockerComponent
2026-07-31 17:48:40 +00:00

19 lines
646 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;
}