NymphComponent.cs 729 B

123456789101112131415161718192021222324
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Species.Components;
  4. /// <summary>
  5. /// This will replace one entity with another entity when it is removed from a body part.
  6. /// Obviously hyper-specific. If you somehow find another use for this, good on you.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent]
  9. public sealed partial class NymphComponent : Component
  10. {
  11. /// <summary>
  12. /// The entity to replace the organ with.
  13. /// </summary>
  14. [DataField(required: true)]
  15. public EntProtoId EntityPrototype = default!;
  16. /// <summary>
  17. /// Whether to transfer the mind to this new entity.
  18. /// </summary>
  19. [DataField]
  20. public bool TransferMind = false;
  21. }