Skip to content

Commit

Permalink
Create VehicleComponent.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Acensti committed Jul 6, 2024
1 parent b0f71ae commit eb94920
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Content.Server/Vehicles/Components/VehicleComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// /Content.Server/Vehicles/Components/VehicleComponent.cs
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;

namespace Content.Server.Vehicles.Components
{
[RegisterComponent]
public sealed class VehicleComponent : Component
{
[DataField("maxOccupants")]
public int MaxOccupants { get; set; } = 4;

[DataField("maxDrivers")]
public int MaxDrivers { get; set; } = 1;

public List<EntityUid> Occupants { get; set; } = new();
public EntityUid? Driver { get; set; }
}
}

0 comments on commit eb94920

Please sign in to comment.