Moves buckling and vehicles to shared, some cleanup (#15923)

This commit is contained in:
AJCM-git
2023-05-01 03:04:23 -04:00
committed by GitHub
parent 2343dd1d3c
commit 878c7c0b85
33 changed files with 1451 additions and 1405 deletions

View File

@@ -1,19 +1,25 @@
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Vehicle.Components
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]
public sealed class RiderComponent : Component
{
/// <summary>
/// Added to people when they are riding in a vehicle
/// used mostly to keep track of them for entityquery.
/// The vehicle this rider is currently riding.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed class RiderComponent : Component
{
/// <summary>
/// The vehicle this rider is currently riding.
/// </summary>
[ViewVariables] public EntityUid? Vehicle;
[ViewVariables] public EntityUid? Vehicle;
public override bool SendOnlyToOwner => true;
}
public override bool SendOnlyToOwner => true;
}
[Serializable, NetSerializable]
public sealed class RiderComponentState : ComponentState
{
public EntityUid? Entity;
}