2022-06-16 15:28:16 +10:00
|
|
|
namespace Content.Server.Shuttles.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Added to <see cref="DockingComponent"/> that have recently undocked.
|
|
|
|
|
/// This checks for whether they've left the specified radius before allowing them to automatically dock again.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class RecentlyDockedComponent : Component
|
2022-06-16 15:28:16 +10:00
|
|
|
{
|
2022-11-16 20:22:11 +01:00
|
|
|
[DataField("lastDocked")]
|
2022-06-16 15:28:16 +10:00
|
|
|
public EntityUid LastDocked;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("radius")]
|
|
|
|
|
public float Radius = 1.5f;
|
|
|
|
|
}
|