using Content.Shared.Polymorph;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Polymorph.Components
{
[RegisterComponent]
public sealed partial class PolymorphedEntityComponent : Component
{
///
/// The polymorph prototype, used to track various information
/// about the polymorph
///
[DataField("prototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))]
public string Prototype = string.Empty;
///
/// The original entity that the player will revert back into
///
[DataField("parent", required: true)]
public EntityUid Parent;
///
/// The amount of time that has passed since the entity was created
/// used for tracking the duration
///
[DataField("time")]
public float Time;
}
}