Delta-v/Content.Server/_Impstation/Revenant/Components/RevenantAnimatedComponent.cs

32 lines
946 B
C#

using System.Threading;
using Content.Server.Revenant.EntitySystems;
using Content.Shared.Revenant.Components;
using Robust.Shared.GameStates;
namespace Content.Server.Revenant.Components;
[RegisterComponent, NetworkedComponent]
[Access(typeof(RevenantAnimatedSystem))]
[AutoGenerateComponentPause]
public sealed partial class RevenantAnimatedComponent : Component
{
/// <summary>
/// The revenant that animated this item. Used for initialization.
/// </summary>
[ViewVariables(VVAccess.ReadOnly)]
public Entity<RevenantComponent>? Revenant;
/// <summary>
/// Components added to make this item animated.
/// Removed when the item becomes inanimate.
/// </summary>
public List<Component> AddedComponents = new();
/// <summary>
/// When the item should become inanimate. If null,
/// the item never becomes inanimate.
/// </summary>
[AutoPausedField]
public TimeSpan? EndTime;
}