PolymorphedEntityComponent.cs 867 B

1234567891011121314151617181920212223242526272829303132
  1. using Content.Server.Polymorph.Systems;
  2. using Content.Shared.Polymorph;
  3. namespace Content.Server.Polymorph.Components;
  4. [RegisterComponent]
  5. [Access(typeof(PolymorphSystem))]
  6. public sealed partial class PolymorphedEntityComponent : Component
  7. {
  8. /// <summary>
  9. /// The polymorph prototype, used to track various information
  10. /// about the polymorph
  11. /// </summary>
  12. [DataField(required: true)]
  13. public PolymorphConfiguration Configuration = new();
  14. /// <summary>
  15. /// The original entity that the player will revert back into
  16. /// </summary>
  17. [DataField(required: true)]
  18. public EntityUid Parent;
  19. /// <summary>
  20. /// The amount of time that has passed since the entity was created
  21. /// used for tracking the duration
  22. /// </summary>
  23. [DataField]
  24. public float Time;
  25. [DataField]
  26. public EntityUid? Action;
  27. }