Vehicles (#7336)
This commit is contained in:
16
Content.Shared/Vehicle/Components/InVehicleComponent.cs
Normal file
16
Content.Shared/Vehicle/Components/InVehicleComponent.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Content.Shared.Vehicle.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Added to objects inside a vehicle to stop people besides the rider from
|
||||
/// removing them.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class InVehicleComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The vehicle this rider is currently riding.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public VehicleComponent Vehicle = default!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user