2022-07-16 13:51:52 +10:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
2022-04-23 21:05:02 -04:00
|
|
|
namespace Content.Shared.Vehicle.Components
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Added to objects inside a vehicle to stop people besides the rider from
|
|
|
|
|
/// removing them.
|
|
|
|
|
/// </summary>
|
2022-07-16 13:51:52 +10:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2022-04-23 21:05:02 -04:00
|
|
|
public sealed class InVehicleComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The vehicle this rider is currently riding.
|
|
|
|
|
/// </summary>
|
2022-07-16 13:51:52 +10:00
|
|
|
[ViewVariables] public VehicleComponent? Vehicle;
|
2022-04-23 21:05:02 -04:00
|
|
|
}
|
|
|
|
|
}
|