Files
crystall-punk-14/Content.Server/Delete/DeleteAfterTimeComponent.cs
2022-05-25 00:43:48 -07:00

16 lines
477 B
C#

namespace Content.Server.Delete
{
/// <summary>
/// Deletes the entity after the specified period of time.
/// </summary>
[RegisterComponent]
public sealed class DeleteAfterTimeComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField("accumulator")]
public float Accumulator = 0f;
[ViewVariables(VVAccess.ReadWrite), DataField("despawnTime")]
public TimeSpan DespawnTime = TimeSpan.FromSeconds(30);
}
}