1
0

SpawnOnDespawnComponent.cs 609 B

123456789101112131415161718
  1. using Content.Server.Spawners.EntitySystems;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Server.Spawners.Components;
  5. /// <summary>
  6. /// When a <c>TimedDespawnComponent"</c> despawns, another one will be spawned in its place.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(SpawnOnDespawnSystem))]
  9. public sealed partial class SpawnOnDespawnComponent : Component
  10. {
  11. /// <summary>
  12. /// Entity prototype to spawn.
  13. /// </summary>
  14. [DataField(required: true)]
  15. public EntProtoId Prototype = string.Empty;
  16. }