Add cargo shuttle (#8686)
This commit is contained in:
31
Content.Shared/Cargo/Components/CargoShuttleComponent.cs
Normal file
31
Content.Shared/Cargo/Components/CargoShuttleComponent.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Robust.Shared.Map;
|
||||
|
||||
namespace Content.Shared.Cargo.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Present on cargo shuttles to provide metadata such as preventing spam calling.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(SharedCargoSystem))]
|
||||
public sealed class CargoShuttleComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("nextCall")]
|
||||
public TimeSpan? NextCall;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("cooldown")]
|
||||
public float Cooldown = 45f;
|
||||
|
||||
[ViewVariables]
|
||||
public bool CanRecall;
|
||||
|
||||
/// <summary>
|
||||
/// The shuttle's assigned coordinates on the cargo map.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public EntityCoordinates Coordinates;
|
||||
|
||||
/// <summary>
|
||||
/// The assigned station for this cargo shuttle.
|
||||
/// </summary>
|
||||
[ViewVariables, DataField("station")]
|
||||
public EntityUid? Station;
|
||||
}
|
||||
Reference in New Issue
Block a user