quantum-space-buddies/QSB/EchoesOfTheEye/AlarmTotemSync/Messages/BellHitMessage.cs
2022-04-02 14:08:44 -07:00

13 lines
399 B
C#

using QSB.EchoesOfTheEye.AlarmTotemSync.WorldObjects;
using QSB.Messaging;
namespace QSB.EchoesOfTheEye.AlarmTotemSync.Messages;
public class BellHitMessage : QSBWorldObjectMessage<QSBAlarmBell, float>
{
public BellHitMessage(float volume) : base(volume) { }
public override void OnReceiveRemote() =>
WorldObject.AttachedObject._oneShotSource.PlayOneShot(AudioType.AlarmChime_RW, Data);
}