CatStation/Content.Shared/Vehicle/Components/VehicleOperatorComponent.cs
AndrewFenriz 358ecc1181
Vehicle system: Core systems & Components (#43527)
* Part one of Vehicles

* Also we need this

* Part 1

* Part 1.1

* And we need this

* Part 2

* Part 2.1

* We REALLY need this

* Little fix

* Just fixes

* fixes (i'm tired)

* fix

* Apply suggestions from code review

Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>

* update

* fixed

* just for cleaner diff

* just in case

* I think this might be cleaner

* fix

* upd

* Update Content.Shared/Vehicle/VehicleSystem.cs

Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>

* fix vehicle key and unstrap checks

* fix OnBuckleUpdateCanMove

* fixes

* clear vehicle operator relays

* small fix

* fix1

* fix2

* upd

* fix?

* fix??

---------

Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
2026-07-18 18:02:50 +00:00

17 lines
523 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Vehicle.Components;
/// <summary>
/// Tracking component for handling the operator of a given <see cref="VehicleComponent"/>
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(VehicleSystem))]
public sealed partial class VehicleOperatorComponent : Component
{
/// <summary>
/// The vehicle we are currently operating.
/// </summary>
[DataField, AutoNetworkedField]
public EntityUid? Vehicle;
}