2023-04-10 15:37:03 +10:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
2022-06-24 17:44:30 +10:00
|
|
|
namespace Content.Shared.Spawners.Components;
|
2022-05-29 02:29:10 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Put this component on something you would like to despawn after a certain amount of time
|
|
|
|
|
/// </summary>
|
2023-04-10 15:37:03 +10:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class TimedDespawnComponent : Component
|
2022-05-29 02:29:10 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How long the entity will exist before despawning
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("lifetime")]
|
|
|
|
|
public float Lifetime = 5f;
|
|
|
|
|
}
|