41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using System.Threading;
|
|
|
|
namespace Content.Server.Carrying
|
|
{
|
|
[RegisterComponent]
|
|
public sealed partial class CarriableComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Number of free hands required
|
|
/// to carry the entity
|
|
/// </summary>
|
|
[DataField]
|
|
public int FreeHandsRequired = 2;
|
|
|
|
public CancellationTokenSource? CancelToken;
|
|
|
|
/// <summary>
|
|
/// The base duration (In Seconds) of how long it should take to pick up this entity
|
|
/// before Contests are considered.
|
|
/// </summary>
|
|
[DataField]
|
|
public float PickupDuration = 3;
|
|
|
|
// Frontier: min/max sanitization
|
|
/// <summary>
|
|
/// The minimum duration (in seconds) of how long it should take to pick up this entity.
|
|
/// When the strongest, heaviest entity picks this up, it should roughly take this long.
|
|
/// </summary>
|
|
[DataField]
|
|
public float MinPickupDuration = 1.5f;
|
|
|
|
/// <summary>
|
|
/// The maximum duration (in seconds) of how long it should take to pick up this entity.
|
|
/// When an object picks up the heaviest object it can lift, it should be at most this.
|
|
/// </summary>
|
|
[DataField]
|
|
public float MaxPickupDuration = 6.0f;
|
|
// End Frontier
|
|
}
|
|
}
|