19 lines
609 B
C#
19 lines
609 B
C#
using Content.Server.Spawners.EntitySystems;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Spawners.Components;
|
|
|
|
/// <summary>
|
|
/// When a <c>TimedDespawnComponent"</c> despawns, another one will be spawned in its place.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(SpawnOnDespawnSystem))]
|
|
public sealed partial class SpawnOnDespawnComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Entity prototype to spawn.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public EntProtoId Prototype = string.Empty;
|
|
}
|