Mime cleanup (#8433)

This commit is contained in:
metalgearsloth
2022-05-25 17:43:48 +10:00
committed by GitHub
parent d79da62a95
commit 495a65bc6d
6 changed files with 51 additions and 39 deletions

View File

@@ -0,0 +1,15 @@
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);
}
}