mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
17 lines
472 B
C#
17 lines
472 B
C#
using QSB.Messaging;
|
|
using QSB.Player;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.Audio.Messages;
|
|
|
|
|
|
public class PlayerMovementAudioJumpMessage : QSBMessage<(float pitch, uint userID)>
|
|
{
|
|
public PlayerMovementAudioJumpMessage(float pitch, uint userID) : base((pitch, userID)) { }
|
|
|
|
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
|
|
|
|
public override void OnReceiveRemote() =>
|
|
QSBPlayerManager.GetPlayer(Data.userID)?.AudioController?.OnJump(Data.pitch);
|
|
}
|