Medical items sound support + sounds (#6871)

This commit is contained in:
Leeroy
2022-02-27 10:02:00 +03:00
committed by GitHub
parent fc667f8f44
commit fb858ab514
10 changed files with 65 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
using System.Threading;
using Content.Shared.Damage;
using Content.Shared.Damage.Prototypes;
using Content.Shared.Sound;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
@@ -42,5 +43,17 @@ namespace Content.Server.Medical.Components
public float Delay = 3f;
public CancellationTokenSource? CancelToken = null;
/// <summary>
/// Sound played on healing begin
/// </summary>
[DataField("healingBeginSound")]
public SoundSpecifier? HealingBeginSound = null;
/// <summary>
/// Sound played on healing end
/// </summary>
[DataField("healingEndSound")]
public SoundSpecifier? HealingEndSound = null;
}
}