2023-05-10 01:11:06 +06:00
|
|
|
using System.Threading;
|
|
|
|
|
|
2024-03-27 16:56:45 +07:00
|
|
|
namespace Content.Server._White.Carrying;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
public sealed partial class CarriableComponent : Component
|
2023-05-10 01:11:06 +06:00
|
|
|
{
|
2024-07-30 16:32:26 +00:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public TimeSpan DoAfterLength = TimeSpan.FromSeconds(4);
|
|
|
|
|
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float WalkModifier = 0.7f;
|
|
|
|
|
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float SprintModifier = 0.7f;
|
|
|
|
|
|
2024-03-27 16:56:45 +07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Number of free hands required
|
|
|
|
|
/// to carry the entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public int FreeHandsRequired = 2;
|
2023-05-10 01:11:06 +06:00
|
|
|
|
2024-03-27 16:56:45 +07:00
|
|
|
public CancellationTokenSource? CancelToken;
|
2024-07-30 16:32:26 +00:00
|
|
|
}
|