Files
crystall-punk-14/Content.Shared/_CP14/MagicSpell/Components/CP14MagicVisionMarkerComponent.cs
2024-11-15 18:18:04 +03:00

18 lines
589 B
C#

namespace Content.Shared._CP14.MagicSpell.Components;
/// <summary>
/// Controls the visibility of this entity to the client, based on the length of time it has existed and the client's ability to see the magic
/// </summary>
[RegisterComponent, AutoGenerateComponentPause]
public sealed partial class CP14MagicVisionMarkerComponent : Component
{
[DataField, AutoPausedField]
public TimeSpan SpawnTime = TimeSpan.Zero;
[DataField, AutoPausedField]
public TimeSpan EndTime = TimeSpan.Zero;
[DataField]
public TimeSpan VisibilityTime = TimeSpan.FromMinutes(2f);
}