Mime cleanup (#8433)
This commit is contained in:
15
Content.Server/Delete/DeleteAfterTimeComponent.cs
Normal file
15
Content.Server/Delete/DeleteAfterTimeComponent.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user