Vehicles (#7336)
This commit is contained in:
16
Content.Shared/Vehicle/Components/RiderComponent.cs
Normal file
16
Content.Shared/Vehicle/Components/RiderComponent.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Content.Shared.Vehicle.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Added to people when they are riding in a vehicle
|
||||
/// used mostly to keep track of them for entityquery.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class RiderComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The vehicle this rider is currently riding.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public VehicleComponent Vehicle = default!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user