29 lines
744 B
C#
29 lines
744 B
C#
using System.Threading;
|
|
using Content.Shared.Disease;
|
|
|
|
namespace Content.Server.Disease.Components
|
|
{
|
|
/// <summary>
|
|
/// For disease vaccines
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class DiseaseVaccineComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// How long it takes to inject someone
|
|
/// </summary>
|
|
[DataField("injectDelay")]
|
|
public float InjectDelay = 2f;
|
|
/// <summary>
|
|
/// If this vaccine has been used
|
|
/// </summary>
|
|
public bool Used = false;
|
|
|
|
/// <summary>
|
|
/// The disease prototype currently on the vaccine
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public DiseasePrototype? Disease;
|
|
}
|
|
}
|