GibOnRoundEndComponent.cs 579 B

12345678910111213141516171819202122
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Shared.Gibbing.Components;
  3. /// <summary>
  4. /// Gibs an entity on round end.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class GibOnRoundEndComponent : Component
  8. {
  9. /// <summary>
  10. /// If the entity has all these objectives fulfilled they won't be gibbed.
  11. /// </summary>
  12. [DataField]
  13. public HashSet<EntProtoId> PreventGibbingObjectives = new();
  14. /// <summary>
  15. /// Entity to spawn when gibbed. Can be used for effects.
  16. /// </summary>
  17. [DataField]
  18. public EntProtoId? SpawnProto;
  19. }