Files
crystall-punk-14/Content.Shared/Vehicle/Components/RiderComponent.cs

18 lines
494 B
C#
Raw Normal View History

using Robust.Shared.GameStates;
2022-04-23 21:05:02 -04:00
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, NetworkedComponent]
2022-04-23 21:05:02 -04:00
public sealed class RiderComponent : Component
{
/// <summary>
/// The vehicle this rider is currently riding.
/// </summary>
[ViewVariables] public EntityUid? Vehicle;
2022-04-23 21:05:02 -04:00
}
}