2023-09-08 18:16:05 -07:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2022-06-05 21:37:29 -04:00
|
|
|
|
2023-09-08 18:16:05 -07:00
|
|
|
namespace Content.Server.Medical.Stethoscope.Components
|
2022-06-05 21:37:29 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Adds an innate verb when equipped to use a stethoscope.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StethoscopeComponent : Component
|
2022-06-05 21:37:29 -04:00
|
|
|
{
|
|
|
|
|
public bool IsActive = false;
|
|
|
|
|
|
|
|
|
|
[DataField("delay")]
|
|
|
|
|
public float Delay = 2.5f;
|
|
|
|
|
|
2023-09-08 18:16:05 -07:00
|
|
|
[DataField("action", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
public string Action = "ActionStethoscope";
|
|
|
|
|
|
|
|
|
|
[DataField("actionEntity")] public EntityUid? ActionEntity;
|
2022-06-05 21:37:29 -04:00
|
|
|
}
|
|
|
|
|
}
|