2024-02-01 08:17:02 -04:00
|
|
|
using Content.Server.Polymorph.Systems;
|
2022-05-18 00:05:22 -04:00
|
|
|
using Content.Shared.Polymorph;
|
|
|
|
|
|
2024-02-01 08:17:02 -04:00
|
|
|
namespace Content.Server.Polymorph.Components;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
[Access(typeof(PolymorphSystem))]
|
|
|
|
|
public sealed partial class PolymorphedEntityComponent : Component
|
2022-05-18 00:05:22 -04:00
|
|
|
{
|
2024-02-01 08:17:02 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The polymorph prototype, used to track various information
|
|
|
|
|
/// about the polymorph
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public PolymorphConfiguration Configuration = new();
|
2022-05-18 00:05:22 -04:00
|
|
|
|
2024-02-01 08:17:02 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The original entity that the player will revert back into
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public EntityUid Parent;
|
2022-05-18 00:05:22 -04:00
|
|
|
|
2024-02-01 08:17:02 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The amount of time that has passed since the entity was created
|
|
|
|
|
/// used for tracking the duration
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public float Time;
|
2023-09-23 04:49:39 -04:00
|
|
|
|
2024-02-01 08:17:02 -04:00
|
|
|
[DataField]
|
|
|
|
|
public EntityUid? Action;
|
2022-05-18 00:05:22 -04:00
|
|
|
}
|