StethoscopeComponent.cs 704 B

12345678910111213141516171819202122
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.Medical.Stethoscope.Components
  4. {
  5. /// <summary>
  6. /// Adds an innate verb when equipped to use a stethoscope.
  7. /// </summary>
  8. [RegisterComponent]
  9. public sealed partial class StethoscopeComponent : Component
  10. {
  11. public bool IsActive = false;
  12. [DataField("delay")]
  13. public float Delay = 2.5f;
  14. [DataField("action", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  15. public string Action = "ActionStethoscope";
  16. [DataField("actionEntity")] public EntityUid? ActionEntity;
  17. }
  18. }