using System.Threading;
using Content.Server.Cloning;
using Content.Shared.Actions.ActionTypes;
namespace Content.Server.Body.Components
{
[RegisterComponent]
public sealed class BodyReassembleComponent : Component
{
///
/// The dna entry used for reassembling the skeleton
/// updated before the entity is gibbed.
///
[ViewVariables]
public ClonerDNAEntry? DNA = null;
///
/// The default time it takes to reassemble itself
///
[ViewVariables]
[DataField("delay")]
public float DoAfterTime = 5f;
///
/// The list of body parts that are needed for reassembly
///
[ViewVariables]
public HashSet? BodyParts = null;
[DataField("action")]
public InstantAction? ReassembleAction = null;
public CancellationTokenSource? CancelToken = null;
}
}